Browse Source

Add alert server into standalone-server as well and some minor polish (#6087)

2.0.7-release
kezhenxu94 3 years ago committed by GitHub
parent
commit
dc85e1a73c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      .asf.yaml
  2. 2
      dolphinscheduler-alert-plugin/dolphinscheduler-alert-email/src/main/java/org/apache/dolphinscheduler/plugin/alert/email/MailSender.java
  3. 85
      dolphinscheduler-alert/src/main/java/org/apache/dolphinscheduler/alert/AlertServer.java
  4. 2
      dolphinscheduler-alert/src/main/java/org/apache/dolphinscheduler/alert/plugin/AlertPluginManager.java
  5. 7
      dolphinscheduler-alert/src/main/java/org/apache/dolphinscheduler/alert/processor/AlertRequestProcessor.java
  6. 5
      dolphinscheduler-alert/src/main/java/org/apache/dolphinscheduler/alert/runner/AlertSender.java
  7. 47
      dolphinscheduler-alert/src/main/java/org/apache/dolphinscheduler/alert/utils/FuncUtils.java
  8. 60
      dolphinscheduler-alert/src/test/java/org/apache/dolphinscheduler/alert/utils/FuncUtilsTest.java
  9. 4
      dolphinscheduler-standalone-server/pom.xml
  10. 67
      dolphinscheduler-standalone-server/src/main/java/org/apache/dolphinscheduler/server/StandaloneServer.java
  11. 229
      sql/dolphinscheduler_h2.sql

5
.asf.yaml

@ -16,10 +16,7 @@
# #
github: github:
description: > description: Apache DolphinScheduler is a distributed and extensible workflow scheduler platform with powerful DAG visual interfaces, dedicated to solving complex job dependencies in the data pipeline and providing various types of jobs available out of box.
Apache DolphinScheduler is a distributed and extensible workflow scheduler platform with powerful DAG
visual interfaces, dedicated to solving complex job dependencies in the data pipeline and providing
various types of jobs available out of box.
homepage: https://dolphinscheduler.apache.org/ homepage: https://dolphinscheduler.apache.org/
labels: labels:
- airflow - airflow

2
dolphinscheduler-alert-plugin/dolphinscheduler-alert-email/src/main/java/org/apache/dolphinscheduler/plugin/alert/email/MailSender.java

@ -80,7 +80,7 @@ public class MailSender {
private String sslTrust; private String sslTrust;
private String showType; private String showType;
private AlertTemplate alertTemplate; private AlertTemplate alertTemplate;
private String mustNotNull = "must not be null"; private String mustNotNull = " must not be null";
public MailSender(Map<String, String> config) { public MailSender(Map<String, String> config) {

85
dolphinscheduler-alert/src/main/java/org/apache/dolphinscheduler/alert/AlertServer.java

@ -24,8 +24,6 @@ import org.apache.dolphinscheduler.alert.plugin.AlertPluginManager;
import org.apache.dolphinscheduler.alert.processor.AlertRequestProcessor; import org.apache.dolphinscheduler.alert.processor.AlertRequestProcessor;
import org.apache.dolphinscheduler.alert.runner.AlertSender; import org.apache.dolphinscheduler.alert.runner.AlertSender;
import org.apache.dolphinscheduler.alert.utils.Constants; import org.apache.dolphinscheduler.alert.utils.Constants;
import org.apache.dolphinscheduler.spi.plugin.DolphinPluginLoader;
import org.apache.dolphinscheduler.spi.plugin.DolphinPluginManagerConfig;
import org.apache.dolphinscheduler.common.thread.Stopper; import org.apache.dolphinscheduler.common.thread.Stopper;
import org.apache.dolphinscheduler.common.utils.PropertyUtils; import org.apache.dolphinscheduler.common.utils.PropertyUtils;
import org.apache.dolphinscheduler.dao.AlertDao; import org.apache.dolphinscheduler.dao.AlertDao;
@ -35,6 +33,8 @@ import org.apache.dolphinscheduler.dao.entity.Alert;
import org.apache.dolphinscheduler.remote.NettyRemotingServer; import org.apache.dolphinscheduler.remote.NettyRemotingServer;
import org.apache.dolphinscheduler.remote.command.CommandType; import org.apache.dolphinscheduler.remote.command.CommandType;
import org.apache.dolphinscheduler.remote.config.NettyServerConfig; import org.apache.dolphinscheduler.remote.config.NettyServerConfig;
import org.apache.dolphinscheduler.spi.plugin.DolphinPluginLoader;
import org.apache.dolphinscheduler.spi.plugin.DolphinPluginManagerConfig;
import org.apache.dolphinscheduler.spi.utils.StringUtils; import org.apache.dolphinscheduler.spi.utils.StringUtils;
import java.util.List; import java.util.List;
@ -44,45 +44,29 @@ import org.slf4j.LoggerFactory;
import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableList;
/**
* alert of start
*/
public class AlertServer { public class AlertServer {
private static final Logger logger = LoggerFactory.getLogger(AlertServer.class); private static final Logger logger = LoggerFactory.getLogger(AlertServer.class);
/** private final PluginDao pluginDao = DaoFactory.getDaoInstance(PluginDao.class);
* Plugin Dao
*/
private PluginDao pluginDao = DaoFactory.getDaoInstance(PluginDao.class);
/** private final AlertDao alertDao = DaoFactory.getDaoInstance(AlertDao.class);
* Alert Dao
*/
private AlertDao alertDao = DaoFactory.getDaoInstance(AlertDao.class);
private AlertSender alertSender;
private AlertPluginManager alertPluginManager; private AlertPluginManager alertPluginManager;
private DolphinPluginManagerConfig alertPluginManagerConfig;
public static final String ALERT_PLUGIN_BINDING = "alert.plugin.binding"; public static final String ALERT_PLUGIN_BINDING = "alert.plugin.binding";
public static final String ALERT_PLUGIN_DIR = "alert.plugin.dir"; public static final String ALERT_PLUGIN_DIR = "alert.plugin.dir";
public static final String MAVEN_LOCAL_REPOSITORY = "maven.local.repository"; public static final String MAVEN_LOCAL_REPOSITORY = "maven.local.repository";
/**
* netty server
*/
private NettyRemotingServer server; private NettyRemotingServer server;
private static class AlertServerHolder { private static class AlertServerHolder {
private static final AlertServer INSTANCE = new AlertServer(); private static final AlertServer INSTANCE = new AlertServer();
} }
public static final AlertServer getInstance() { public static AlertServer getInstance() {
return AlertServerHolder.INSTANCE; return AlertServerHolder.INSTANCE;
} }
@ -98,8 +82,7 @@ public class AlertServer {
} }
private void initPlugin() { private void initPlugin() {
alertPluginManager = new AlertPluginManager(); DolphinPluginManagerConfig alertPluginManagerConfig = new DolphinPluginManagerConfig();
alertPluginManagerConfig = new DolphinPluginManagerConfig();
alertPluginManagerConfig.setPlugins(PropertyUtils.getString(ALERT_PLUGIN_BINDING)); alertPluginManagerConfig.setPlugins(PropertyUtils.getString(ALERT_PLUGIN_BINDING));
if (StringUtils.isNotBlank(PropertyUtils.getString(ALERT_PLUGIN_DIR))) { if (StringUtils.isNotBlank(PropertyUtils.getString(ALERT_PLUGIN_DIR))) {
alertPluginManagerConfig.setInstalledPluginsDir(PropertyUtils.getString(ALERT_PLUGIN_DIR, Constants.ALERT_PLUGIN_PATH).trim()); alertPluginManagerConfig.setInstalledPluginsDir(PropertyUtils.getString(ALERT_PLUGIN_DIR, Constants.ALERT_PLUGIN_PATH).trim());
@ -109,6 +92,7 @@ public class AlertServer {
alertPluginManagerConfig.setMavenLocalRepository(PropertyUtils.getString(MAVEN_LOCAL_REPOSITORY).trim()); alertPluginManagerConfig.setMavenLocalRepository(PropertyUtils.getString(MAVEN_LOCAL_REPOSITORY).trim());
} }
alertPluginManager = new AlertPluginManager();
DolphinPluginLoader alertPluginLoader = new DolphinPluginLoader(alertPluginManagerConfig, ImmutableList.of(alertPluginManager)); DolphinPluginLoader alertPluginLoader = new DolphinPluginLoader(alertPluginManagerConfig, ImmutableList.of(alertPluginManager));
try { try {
alertPluginLoader.loadPlugins(); alertPluginLoader.loadPlugins();
@ -117,9 +101,6 @@ public class AlertServer {
} }
} }
/**
* init netty remoting server
*/
private void initRemoteServer() { private void initRemoteServer() {
NettyServerConfig serverConfig = new NettyServerConfig(); NettyServerConfig serverConfig = new NettyServerConfig();
serverConfig.setListenPort(ALERT_RPC_PORT); serverConfig.setListenPort(ALERT_RPC_PORT);
@ -128,30 +109,10 @@ public class AlertServer {
this.server.start(); this.server.start();
} }
/**
* Cyclic alert info sending alert
*/
private void runSender() { private void runSender() {
while (Stopper.isRunning()) { new Thread(new Sender()).start();
try {
Thread.sleep(Constants.ALERT_SCAN_INTERVAL);
} catch (InterruptedException e) {
logger.error(e.getMessage(), e);
Thread.currentThread().interrupt();
}
if (alertPluginManager == null || alertPluginManager.getAlertChannelMap().size() == 0) {
logger.warn("No Alert Plugin . Cannot send alert info. ");
} else {
List<Alert> alerts = alertDao.listWaitExecutionAlert();
alertSender = new AlertSender(alerts, alertDao, alertPluginManager);
alertSender.run();
}
}
} }
/**
* start
*/
public void start() { public void start() {
PropertyUtils.loadPropertyFile(ALERT_PROPERTIES_PATH); PropertyUtils.loadPropertyFile(ALERT_PROPERTIES_PATH);
checkTable(); checkTable();
@ -161,23 +122,35 @@ public class AlertServer {
runSender(); runSender();
} }
/**
* stop
*/
public void stop() { public void stop() {
this.server.close(); this.server.close();
logger.info("alert server shut down"); logger.info("alert server shut down");
} }
public static void main(String[] args) { final class Sender implements Runnable {
AlertServer alertServer = AlertServer.getInstance();
alertServer.start();
Runtime.getRuntime().addShutdownHook(new Thread() {
@Override @Override
public void run() { public void run() {
alertServer.stop(); while (Stopper.isRunning()) {
try {
Thread.sleep(Constants.ALERT_SCAN_INTERVAL);
} catch (InterruptedException e) {
logger.error(e.getMessage(), e);
Thread.currentThread().interrupt();
} }
}); if (alertPluginManager == null || alertPluginManager.getAlertChannelMap().size() == 0) {
logger.warn("No Alert Plugin . Cannot send alert info. ");
} else {
List<Alert> alerts = alertDao.listWaitExecutionAlert();
new AlertSender(alerts, alertDao, alertPluginManager).run();
}
}
}
}
public static void main(String[] args) {
AlertServer alertServer = AlertServer.getInstance();
alertServer.start();
Runtime.getRuntime().addShutdownHook(new Thread(alertServer::stop));
} }
} }

2
dolphinscheduler-alert/src/main/java/org/apache/dolphinscheduler/alert/plugin/AlertPluginManager.java

@ -56,7 +56,7 @@ public class AlertPluginManager extends AbstractDolphinPluginManager {
*/ */
private final Map<Integer, String> pluginDefineMap = new HashMap<>(); private final Map<Integer, String> pluginDefineMap = new HashMap<>();
private PluginDao pluginDao = DaoFactory.getDaoInstance(PluginDao.class); private final PluginDao pluginDao = DaoFactory.getDaoInstance(PluginDao.class);
private void addAlertChannelFactory(AlertChannelFactory alertChannelFactory) { private void addAlertChannelFactory(AlertChannelFactory alertChannelFactory) {
requireNonNull(alertChannelFactory, "alertChannelFactory is null"); requireNonNull(alertChannelFactory, "alertChannelFactory is null");

7
dolphinscheduler-alert/src/main/java/org/apache/dolphinscheduler/alert/processor/AlertRequestProcessor.java

@ -33,14 +33,11 @@ import org.slf4j.LoggerFactory;
import io.netty.channel.Channel; import io.netty.channel.Channel;
/**
* alert request processor
*/
public class AlertRequestProcessor implements NettyRequestProcessor { public class AlertRequestProcessor implements NettyRequestProcessor {
private final Logger logger = LoggerFactory.getLogger(AlertRequestProcessor.class); private final Logger logger = LoggerFactory.getLogger(AlertRequestProcessor.class);
private AlertDao alertDao; private final AlertDao alertDao;
private AlertPluginManager alertPluginManager; private final AlertPluginManager alertPluginManager;
public AlertRequestProcessor(AlertDao alertDao, AlertPluginManager alertPluginManager) { public AlertRequestProcessor(AlertDao alertDao, AlertPluginManager alertPluginManager) {
this.alertDao = alertDao; this.alertDao = alertDao;

5
dolphinscheduler-alert/src/main/java/org/apache/dolphinscheduler/alert/runner/AlertSender.java

@ -38,16 +38,13 @@ import java.util.Map;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
/**
* alert sender
*/
public class AlertSender { public class AlertSender {
private static final Logger logger = LoggerFactory.getLogger(AlertSender.class); private static final Logger logger = LoggerFactory.getLogger(AlertSender.class);
private List<Alert> alertList; private List<Alert> alertList;
private AlertDao alertDao; private AlertDao alertDao;
private AlertPluginManager alertPluginManager; private final AlertPluginManager alertPluginManager;
public AlertSender(AlertPluginManager alertPluginManager) { public AlertSender(AlertPluginManager alertPluginManager) {
this.alertPluginManager = alertPluginManager; this.alertPluginManager = alertPluginManager;

47
dolphinscheduler-alert/src/main/java/org/apache/dolphinscheduler/alert/utils/FuncUtils.java

@ -1,47 +0,0 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.dolphinscheduler.alert.utils;
import org.apache.dolphinscheduler.common.utils.StringUtils;
public class FuncUtils {
private FuncUtils() {
throw new IllegalStateException(FuncUtils.class.getName());
}
public static String mkString(Iterable<String> list, String split) {
if (null == list || StringUtils.isEmpty(split)) {
return null;
}
StringBuilder sb = new StringBuilder();
boolean first = true;
for (String item : list) {
if (first) {
first = false;
} else {
sb.append(split);
}
sb.append(item);
}
return sb.toString();
}
}

60
dolphinscheduler-alert/src/test/java/org/apache/dolphinscheduler/alert/utils/FuncUtilsTest.java

@ -1,60 +0,0 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.dolphinscheduler.alert.utils;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import java.util.Arrays;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class FuncUtilsTest {
private static final Logger logger = LoggerFactory.getLogger(FuncUtilsTest.class);
/**
* Test mkString
*/
@Test
public void testMKString() {
//Define users list
Iterable<String> users = Arrays.asList("user1", "user2", "user3");
//Define split
String split = "|";
//Invoke mkString with correctParams
String result = FuncUtils.mkString(users, split);
logger.info(result);
//Expected result string
assertEquals("user1|user2|user3", result);
//Null list expected return null
result = FuncUtils.mkString(null, split);
assertNull(result);
//Null split expected return null
result = FuncUtils.mkString(users, null);
assertNull(result);
}
}

4
dolphinscheduler-standalone-server/pom.xml

@ -47,6 +47,10 @@
</exclusion> </exclusion>
</exclusions> </exclusions>
</dependency> </dependency>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-alert</artifactId>
</dependency>
</dependencies> </dependencies>
</project> </project>

67
dolphinscheduler-standalone-server/src/main/java/org/apache/dolphinscheduler/server/StandaloneServer.java

@ -22,6 +22,7 @@ import static org.apache.dolphinscheduler.common.Constants.SPRING_DATASOURCE_PAS
import static org.apache.dolphinscheduler.common.Constants.SPRING_DATASOURCE_URL; import static org.apache.dolphinscheduler.common.Constants.SPRING_DATASOURCE_URL;
import static org.apache.dolphinscheduler.common.Constants.SPRING_DATASOURCE_USERNAME; import static org.apache.dolphinscheduler.common.Constants.SPRING_DATASOURCE_USERNAME;
import org.apache.dolphinscheduler.alert.AlertServer;
import org.apache.dolphinscheduler.api.ApiApplicationServer; import org.apache.dolphinscheduler.api.ApiApplicationServer;
import org.apache.dolphinscheduler.common.utils.ScriptRunner; import org.apache.dolphinscheduler.common.utils.ScriptRunner;
import org.apache.dolphinscheduler.dao.datasource.ConnectionFactory; import org.apache.dolphinscheduler.dao.datasource.ConnectionFactory;
@ -31,9 +32,11 @@ import org.apache.dolphinscheduler.server.worker.WorkerServer;
import org.apache.curator.test.TestingServer; import org.apache.curator.test.TestingServer;
import java.io.FileReader; import java.io.FileReader;
import java.io.IOException;
import java.nio.file.Files; import java.nio.file.Files;
import java.nio.file.Path; import java.nio.file.Path;
import java.nio.file.Paths; import java.nio.file.Paths;
import java.sql.SQLException;
import javax.sql.DataSource; import javax.sql.DataSource;
@ -48,8 +51,50 @@ public class StandaloneServer {
private static final Logger LOGGER = LoggerFactory.getLogger(StandaloneServer.class); private static final Logger LOGGER = LoggerFactory.getLogger(StandaloneServer.class);
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
Thread.currentThread().setName("Standalone-Server");
System.setProperty("spring.profiles.active", "api"); System.setProperty("spring.profiles.active", "api");
startDatabase();
startRegistry();
startAlertServer();
new SpringApplicationBuilder(
ApiApplicationServer.class,
MasterServer.class,
WorkerServer.class
).run(args);
}
private static void startAlertServer() {
final Path alertPluginPath = Paths.get(
StandaloneServer.class.getProtectionDomain().getCodeSource().getLocation().getPath(),
"../../../dolphinscheduler-alert-plugin/dolphinscheduler-alert-email/pom.xml"
).toAbsolutePath();
if (Files.exists(alertPluginPath)) {
System.setProperty("alert.plugin.binding", alertPluginPath.toString());
System.setProperty("alert.plugin.dir", "");
}
AlertServer.getInstance().start();
}
private static void startRegistry() throws Exception {
final TestingServer server = new TestingServer(true);
System.setProperty("registry.servers", server.getConnectString());
final Path registryPath = Paths.get(
StandaloneServer.class.getProtectionDomain().getCodeSource().getLocation().getPath(),
"../../../dolphinscheduler-registry-plugin/dolphinscheduler-registry-zookeeper/pom.xml"
).toAbsolutePath();
if (Files.exists(registryPath)) {
System.setProperty("registry.plugin.binding", registryPath.toString());
System.setProperty("registry.plugin.dir", "");
}
}
private static void startDatabase() throws IOException, SQLException {
final Path temp = Files.createTempDirectory("dolphinscheduler_"); final Path temp = Files.createTempDirectory("dolphinscheduler_");
LOGGER.info("H2 database directory: {}", temp); LOGGER.info("H2 database directory: {}", temp);
System.setProperty( System.setProperty(
@ -58,7 +103,7 @@ public class StandaloneServer {
); );
System.setProperty( System.setProperty(
SPRING_DATASOURCE_URL, SPRING_DATASOURCE_URL,
String.format("jdbc:h2:tcp://localhost/%s", temp.toAbsolutePath()) String.format("jdbc:h2:tcp://localhost/%s;MODE=MySQL;DATABASE_TO_LOWER=true", temp.toAbsolutePath())
); );
System.setProperty(SPRING_DATASOURCE_USERNAME, "sa"); System.setProperty(SPRING_DATASOURCE_USERNAME, "sa");
System.setProperty(SPRING_DATASOURCE_PASSWORD, ""); System.setProperty(SPRING_DATASOURCE_PASSWORD, "");
@ -68,25 +113,5 @@ public class StandaloneServer {
final DataSource ds = ConnectionFactory.getInstance().getDataSource(); final DataSource ds = ConnectionFactory.getInstance().getDataSource();
final ScriptRunner runner = new ScriptRunner(ds.getConnection(), true, true); final ScriptRunner runner = new ScriptRunner(ds.getConnection(), true, true);
runner.runScript(new FileReader("sql/dolphinscheduler_h2.sql")); runner.runScript(new FileReader("sql/dolphinscheduler_h2.sql"));
final TestingServer server = new TestingServer(true);
System.setProperty("registry.servers", server.getConnectString());
final Path registryPath = Paths.get(
StandaloneServer.class.getProtectionDomain().getCodeSource().getLocation().getPath(),
"../../../dolphinscheduler-registry-plugin/dolphinscheduler-registry-zookeeper/pom.xml"
).toAbsolutePath();
if (Files.exists(registryPath)) {
System.setProperty("registry.plugin.binding", registryPath.toString());
System.setProperty("registry.plugin.dir", "");
}
Thread.currentThread().setName("Standalone-Server");
new SpringApplicationBuilder(
ApiApplicationServer.class,
MasterServer.class,
WorkerServer.class
).run(args);
} }
} }

229
sql/dolphinscheduler_h2.sql

@ -15,13 +15,15 @@
* limitations under the License. * limitations under the License.
*/ */
SET FOREIGN_KEY_CHECKS=0; SET
FOREIGN_KEY_CHECKS=0;
-- ---------------------------- -- ----------------------------
-- Table structure for QRTZ_JOB_DETAILS -- Table structure for QRTZ_JOB_DETAILS
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS QRTZ_JOB_DETAILS; DROP TABLE IF EXISTS QRTZ_JOB_DETAILS;
CREATE TABLE QRTZ_JOB_DETAILS ( CREATE TABLE QRTZ_JOB_DETAILS
(
SCHED_NAME varchar(120) NOT NULL, SCHED_NAME varchar(120) NOT NULL,
JOB_NAME varchar(200) NOT NULL, JOB_NAME varchar(200) NOT NULL,
JOB_GROUP varchar(200) NOT NULL, JOB_GROUP varchar(200) NOT NULL,
@ -32,14 +34,15 @@ CREATE TABLE QRTZ_JOB_DETAILS (
IS_UPDATE_DATA varchar(1) NOT NULL, IS_UPDATE_DATA varchar(1) NOT NULL,
REQUESTS_RECOVERY varchar(1) NOT NULL, REQUESTS_RECOVERY varchar(1) NOT NULL,
JOB_DATA blob, JOB_DATA blob,
PRIMARY KEY (SCHED_NAME,JOB_NAME,JOB_GROUP) PRIMARY KEY (SCHED_NAME, JOB_NAME, JOB_GROUP)
); );
-- ---------------------------- -- ----------------------------
-- Table structure for QRTZ_TRIGGERS -- Table structure for QRTZ_TRIGGERS
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS QRTZ_TRIGGERS; DROP TABLE IF EXISTS QRTZ_TRIGGERS;
CREATE TABLE QRTZ_TRIGGERS ( CREATE TABLE QRTZ_TRIGGERS
(
SCHED_NAME varchar(120) NOT NULL, SCHED_NAME varchar(120) NOT NULL,
TRIGGER_NAME varchar(200) NOT NULL, TRIGGER_NAME varchar(200) NOT NULL,
TRIGGER_GROUP varchar(200) NOT NULL, TRIGGER_GROUP varchar(200) NOT NULL,
@ -56,7 +59,7 @@ CREATE TABLE QRTZ_TRIGGERS (
CALENDAR_NAME varchar(200) DEFAULT NULL, CALENDAR_NAME varchar(200) DEFAULT NULL,
MISFIRE_INSTR smallint(2) DEFAULT NULL, MISFIRE_INSTR smallint(2) DEFAULT NULL,
JOB_DATA blob, JOB_DATA blob,
PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP), PRIMARY KEY (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP),
CONSTRAINT QRTZ_TRIGGERS_ibfk_1 FOREIGN KEY (SCHED_NAME, JOB_NAME, JOB_GROUP) REFERENCES QRTZ_JOB_DETAILS (SCHED_NAME, JOB_NAME, JOB_GROUP) CONSTRAINT QRTZ_TRIGGERS_ibfk_1 FOREIGN KEY (SCHED_NAME, JOB_NAME, JOB_GROUP) REFERENCES QRTZ_JOB_DETAILS (SCHED_NAME, JOB_NAME, JOB_GROUP)
); );
@ -64,12 +67,13 @@ CREATE TABLE QRTZ_TRIGGERS (
-- Table structure for QRTZ_BLOB_TRIGGERS -- Table structure for QRTZ_BLOB_TRIGGERS
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS QRTZ_BLOB_TRIGGERS; DROP TABLE IF EXISTS QRTZ_BLOB_TRIGGERS;
CREATE TABLE QRTZ_BLOB_TRIGGERS ( CREATE TABLE QRTZ_BLOB_TRIGGERS
(
SCHED_NAME varchar(120) NOT NULL, SCHED_NAME varchar(120) NOT NULL,
TRIGGER_NAME varchar(200) NOT NULL, TRIGGER_NAME varchar(200) NOT NULL,
TRIGGER_GROUP varchar(200) NOT NULL, TRIGGER_GROUP varchar(200) NOT NULL,
BLOB_DATA blob, BLOB_DATA blob,
PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP), PRIMARY KEY (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP),
FOREIGN KEY (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP) REFERENCES QRTZ_TRIGGERS (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP) FOREIGN KEY (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP) REFERENCES QRTZ_TRIGGERS (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP)
); );
@ -81,11 +85,12 @@ CREATE TABLE QRTZ_BLOB_TRIGGERS (
-- Table structure for QRTZ_CALENDARS -- Table structure for QRTZ_CALENDARS
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS QRTZ_CALENDARS; DROP TABLE IF EXISTS QRTZ_CALENDARS;
CREATE TABLE QRTZ_CALENDARS ( CREATE TABLE QRTZ_CALENDARS
(
SCHED_NAME varchar(120) NOT NULL, SCHED_NAME varchar(120) NOT NULL,
CALENDAR_NAME varchar(200) NOT NULL, CALENDAR_NAME varchar(200) NOT NULL,
CALENDAR blob NOT NULL, CALENDAR blob NOT NULL,
PRIMARY KEY (SCHED_NAME,CALENDAR_NAME) PRIMARY KEY (SCHED_NAME, CALENDAR_NAME)
); );
-- ---------------------------- -- ----------------------------
@ -96,13 +101,14 @@ CREATE TABLE QRTZ_CALENDARS (
-- Table structure for QRTZ_CRON_TRIGGERS -- Table structure for QRTZ_CRON_TRIGGERS
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS QRTZ_CRON_TRIGGERS; DROP TABLE IF EXISTS QRTZ_CRON_TRIGGERS;
CREATE TABLE QRTZ_CRON_TRIGGERS ( CREATE TABLE QRTZ_CRON_TRIGGERS
(
SCHED_NAME varchar(120) NOT NULL, SCHED_NAME varchar(120) NOT NULL,
TRIGGER_NAME varchar(200) NOT NULL, TRIGGER_NAME varchar(200) NOT NULL,
TRIGGER_GROUP varchar(200) NOT NULL, TRIGGER_GROUP varchar(200) NOT NULL,
CRON_EXPRESSION varchar(120) NOT NULL, CRON_EXPRESSION varchar(120) NOT NULL,
TIME_ZONE_ID varchar(80) DEFAULT NULL, TIME_ZONE_ID varchar(80) DEFAULT NULL,
PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP), PRIMARY KEY (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP),
CONSTRAINT QRTZ_CRON_TRIGGERS_ibfk_1 FOREIGN KEY (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP) REFERENCES QRTZ_TRIGGERS (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP) CONSTRAINT QRTZ_CRON_TRIGGERS_ibfk_1 FOREIGN KEY (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP) REFERENCES QRTZ_TRIGGERS (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP)
); );
@ -114,7 +120,8 @@ CREATE TABLE QRTZ_CRON_TRIGGERS (
-- Table structure for QRTZ_FIRED_TRIGGERS -- Table structure for QRTZ_FIRED_TRIGGERS
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS QRTZ_FIRED_TRIGGERS; DROP TABLE IF EXISTS QRTZ_FIRED_TRIGGERS;
CREATE TABLE QRTZ_FIRED_TRIGGERS ( CREATE TABLE QRTZ_FIRED_TRIGGERS
(
SCHED_NAME varchar(120) NOT NULL, SCHED_NAME varchar(120) NOT NULL,
ENTRY_ID varchar(200) NOT NULL, ENTRY_ID varchar(200) NOT NULL,
TRIGGER_NAME varchar(200) NOT NULL, TRIGGER_NAME varchar(200) NOT NULL,
@ -128,7 +135,7 @@ CREATE TABLE QRTZ_FIRED_TRIGGERS (
JOB_GROUP varchar(200) DEFAULT NULL, JOB_GROUP varchar(200) DEFAULT NULL,
IS_NONCONCURRENT varchar(1) DEFAULT NULL, IS_NONCONCURRENT varchar(1) DEFAULT NULL,
REQUESTS_RECOVERY varchar(1) DEFAULT NULL, REQUESTS_RECOVERY varchar(1) DEFAULT NULL,
PRIMARY KEY (SCHED_NAME,ENTRY_ID) PRIMARY KEY (SCHED_NAME, ENTRY_ID)
); );
-- ---------------------------- -- ----------------------------
@ -143,10 +150,11 @@ CREATE TABLE QRTZ_FIRED_TRIGGERS (
-- Table structure for QRTZ_LOCKS -- Table structure for QRTZ_LOCKS
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS QRTZ_LOCKS; DROP TABLE IF EXISTS QRTZ_LOCKS;
CREATE TABLE QRTZ_LOCKS ( CREATE TABLE QRTZ_LOCKS
(
SCHED_NAME varchar(120) NOT NULL, SCHED_NAME varchar(120) NOT NULL,
LOCK_NAME varchar(40) NOT NULL, LOCK_NAME varchar(40) NOT NULL,
PRIMARY KEY (SCHED_NAME,LOCK_NAME) PRIMARY KEY (SCHED_NAME, LOCK_NAME)
); );
-- ---------------------------- -- ----------------------------
@ -157,10 +165,11 @@ CREATE TABLE QRTZ_LOCKS (
-- Table structure for QRTZ_PAUSED_TRIGGER_GRPS -- Table structure for QRTZ_PAUSED_TRIGGER_GRPS
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS QRTZ_PAUSED_TRIGGER_GRPS; DROP TABLE IF EXISTS QRTZ_PAUSED_TRIGGER_GRPS;
CREATE TABLE QRTZ_PAUSED_TRIGGER_GRPS ( CREATE TABLE QRTZ_PAUSED_TRIGGER_GRPS
(
SCHED_NAME varchar(120) NOT NULL, SCHED_NAME varchar(120) NOT NULL,
TRIGGER_GROUP varchar(200) NOT NULL, TRIGGER_GROUP varchar(200) NOT NULL,
PRIMARY KEY (SCHED_NAME,TRIGGER_GROUP) PRIMARY KEY (SCHED_NAME, TRIGGER_GROUP)
); );
-- ---------------------------- -- ----------------------------
@ -171,12 +180,13 @@ CREATE TABLE QRTZ_PAUSED_TRIGGER_GRPS (
-- Table structure for QRTZ_SCHEDULER_STATE -- Table structure for QRTZ_SCHEDULER_STATE
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS QRTZ_SCHEDULER_STATE; DROP TABLE IF EXISTS QRTZ_SCHEDULER_STATE;
CREATE TABLE QRTZ_SCHEDULER_STATE ( CREATE TABLE QRTZ_SCHEDULER_STATE
(
SCHED_NAME varchar(120) NOT NULL, SCHED_NAME varchar(120) NOT NULL,
INSTANCE_NAME varchar(200) NOT NULL, INSTANCE_NAME varchar(200) NOT NULL,
LAST_CHECKIN_TIME bigint(13) NOT NULL, LAST_CHECKIN_TIME bigint(13) NOT NULL,
CHECKIN_INTERVAL bigint(13) NOT NULL, CHECKIN_INTERVAL bigint(13) NOT NULL,
PRIMARY KEY (SCHED_NAME,INSTANCE_NAME) PRIMARY KEY (SCHED_NAME, INSTANCE_NAME)
); );
-- ---------------------------- -- ----------------------------
@ -187,14 +197,15 @@ CREATE TABLE QRTZ_SCHEDULER_STATE (
-- Table structure for QRTZ_SIMPLE_TRIGGERS -- Table structure for QRTZ_SIMPLE_TRIGGERS
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS QRTZ_SIMPLE_TRIGGERS; DROP TABLE IF EXISTS QRTZ_SIMPLE_TRIGGERS;
CREATE TABLE QRTZ_SIMPLE_TRIGGERS ( CREATE TABLE QRTZ_SIMPLE_TRIGGERS
(
SCHED_NAME varchar(120) NOT NULL, SCHED_NAME varchar(120) NOT NULL,
TRIGGER_NAME varchar(200) NOT NULL, TRIGGER_NAME varchar(200) NOT NULL,
TRIGGER_GROUP varchar(200) NOT NULL, TRIGGER_GROUP varchar(200) NOT NULL,
REPEAT_COUNT bigint(7) NOT NULL, REPEAT_COUNT bigint(7) NOT NULL,
REPEAT_INTERVAL bigint(12) NOT NULL, REPEAT_INTERVAL bigint(12) NOT NULL,
TIMES_TRIGGERED bigint(10) NOT NULL, TIMES_TRIGGERED bigint(10) NOT NULL,
PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP), PRIMARY KEY (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP),
CONSTRAINT QRTZ_SIMPLE_TRIGGERS_ibfk_1 FOREIGN KEY (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP) REFERENCES QRTZ_TRIGGERS (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP) CONSTRAINT QRTZ_SIMPLE_TRIGGERS_ibfk_1 FOREIGN KEY (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP) REFERENCES QRTZ_TRIGGERS (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP)
); );
@ -206,7 +217,8 @@ CREATE TABLE QRTZ_SIMPLE_TRIGGERS (
-- Table structure for QRTZ_SIMPROP_TRIGGERS -- Table structure for QRTZ_SIMPROP_TRIGGERS
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS QRTZ_SIMPROP_TRIGGERS; DROP TABLE IF EXISTS QRTZ_SIMPROP_TRIGGERS;
CREATE TABLE QRTZ_SIMPROP_TRIGGERS ( CREATE TABLE QRTZ_SIMPROP_TRIGGERS
(
SCHED_NAME varchar(120) NOT NULL, SCHED_NAME varchar(120) NOT NULL,
TRIGGER_NAME varchar(200) NOT NULL, TRIGGER_NAME varchar(200) NOT NULL,
TRIGGER_GROUP varchar(200) NOT NULL, TRIGGER_GROUP varchar(200) NOT NULL,
@ -217,11 +229,11 @@ CREATE TABLE QRTZ_SIMPROP_TRIGGERS (
INT_PROP_2 int(11) DEFAULT NULL, INT_PROP_2 int(11) DEFAULT NULL,
LONG_PROP_1 bigint(20) DEFAULT NULL, LONG_PROP_1 bigint(20) DEFAULT NULL,
LONG_PROP_2 bigint(20) DEFAULT NULL, LONG_PROP_2 bigint(20) DEFAULT NULL,
DEC_PROP_1 decimal(13,4) DEFAULT NULL, DEC_PROP_1 decimal(13, 4) DEFAULT NULL,
DEC_PROP_2 decimal(13,4) DEFAULT NULL, DEC_PROP_2 decimal(13, 4) DEFAULT NULL,
BOOL_PROP_1 varchar(1) DEFAULT NULL, BOOL_PROP_1 varchar(1) DEFAULT NULL,
BOOL_PROP_2 varchar(1) DEFAULT NULL, BOOL_PROP_2 varchar(1) DEFAULT NULL,
PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP), PRIMARY KEY (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP),
CONSTRAINT QRTZ_SIMPROP_TRIGGERS_ibfk_1 FOREIGN KEY (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP) REFERENCES QRTZ_TRIGGERS (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP) CONSTRAINT QRTZ_SIMPROP_TRIGGERS_ibfk_1 FOREIGN KEY (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP) REFERENCES QRTZ_TRIGGERS (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP)
); );
@ -237,7 +249,8 @@ CREATE TABLE QRTZ_SIMPROP_TRIGGERS (
-- Table structure for t_ds_access_token -- Table structure for t_ds_access_token
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS t_ds_access_token; DROP TABLE IF EXISTS t_ds_access_token;
CREATE TABLE t_ds_access_token ( CREATE TABLE t_ds_access_token
(
id int(11) NOT NULL AUTO_INCREMENT, id int(11) NOT NULL AUTO_INCREMENT,
user_id int(11) DEFAULT NULL, user_id int(11) DEFAULT NULL,
token varchar(64) DEFAULT NULL, token varchar(64) DEFAULT NULL,
@ -255,7 +268,8 @@ CREATE TABLE t_ds_access_token (
-- Table structure for t_ds_alert -- Table structure for t_ds_alert
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS t_ds_alert; DROP TABLE IF EXISTS t_ds_alert;
CREATE TABLE t_ds_alert ( CREATE TABLE t_ds_alert
(
id int(11) NOT NULL AUTO_INCREMENT, id int(11) NOT NULL AUTO_INCREMENT,
title varchar(64) DEFAULT NULL, title varchar(64) DEFAULT NULL,
content text, content text,
@ -265,7 +279,7 @@ CREATE TABLE t_ds_alert (
create_time datetime DEFAULT NULL, create_time datetime DEFAULT NULL,
update_time datetime DEFAULT NULL, update_time datetime DEFAULT NULL,
PRIMARY KEY (id) PRIMARY KEY (id)
) ; );
-- ---------------------------- -- ----------------------------
-- Records of t_ds_alert -- Records of t_ds_alert
@ -275,9 +289,10 @@ CREATE TABLE t_ds_alert (
-- Table structure for t_ds_alertgroup -- Table structure for t_ds_alertgroup
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS t_ds_alertgroup; DROP TABLE IF EXISTS t_ds_alertgroup;
CREATE TABLE t_ds_alertgroup( CREATE TABLE t_ds_alertgroup
(
id int(11) NOT NULL AUTO_INCREMENT, id int(11) NOT NULL AUTO_INCREMENT,
alert_instance_ids varchar (255) DEFAULT NULL, alert_instance_ids varchar(255) DEFAULT NULL,
create_user_id int(11) DEFAULT NULL, create_user_id int(11) DEFAULT NULL,
group_name varchar(255) DEFAULT NULL, group_name varchar(255) DEFAULT NULL,
description varchar(255) DEFAULT NULL, description varchar(255) DEFAULT NULL,
@ -285,7 +300,7 @@ CREATE TABLE t_ds_alertgroup(
update_time datetime DEFAULT NULL, update_time datetime DEFAULT NULL,
PRIMARY KEY (id), PRIMARY KEY (id),
UNIQUE KEY t_ds_alertgroup_name_un (group_name) UNIQUE KEY t_ds_alertgroup_name_un (group_name)
) ; );
-- ---------------------------- -- ----------------------------
-- Records of t_ds_alertgroup -- Records of t_ds_alertgroup
@ -295,7 +310,8 @@ CREATE TABLE t_ds_alertgroup(
-- Table structure for t_ds_command -- Table structure for t_ds_command
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS t_ds_command; DROP TABLE IF EXISTS t_ds_command;
CREATE TABLE t_ds_command ( CREATE TABLE t_ds_command
(
id int(11) NOT NULL AUTO_INCREMENT, id int(11) NOT NULL AUTO_INCREMENT,
command_type tinyint(4) DEFAULT NULL, command_type tinyint(4) DEFAULT NULL,
process_definition_id int(11) DEFAULT NULL, process_definition_id int(11) DEFAULT NULL,
@ -309,9 +325,9 @@ CREATE TABLE t_ds_command (
executor_id int(11) DEFAULT NULL, executor_id int(11) DEFAULT NULL,
update_time datetime DEFAULT NULL, update_time datetime DEFAULT NULL,
process_instance_priority int(11) DEFAULT NULL, process_instance_priority int(11) DEFAULT NULL,
worker_group varchar(64) , worker_group varchar(64),
PRIMARY KEY (id) PRIMARY KEY (id)
) ; );
-- ---------------------------- -- ----------------------------
-- Records of t_ds_command -- Records of t_ds_command
@ -321,7 +337,8 @@ CREATE TABLE t_ds_command (
-- Table structure for t_ds_datasource -- Table structure for t_ds_datasource
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS t_ds_datasource; DROP TABLE IF EXISTS t_ds_datasource;
CREATE TABLE t_ds_datasource ( CREATE TABLE t_ds_datasource
(
id int(11) NOT NULL AUTO_INCREMENT, id int(11) NOT NULL AUTO_INCREMENT,
name varchar(64) NOT NULL, name varchar(64) NOT NULL,
note varchar(255) DEFAULT NULL, note varchar(255) DEFAULT NULL,
@ -332,7 +349,7 @@ CREATE TABLE t_ds_datasource (
update_time datetime DEFAULT NULL, update_time datetime DEFAULT NULL,
PRIMARY KEY (id), PRIMARY KEY (id),
UNIQUE KEY t_ds_datasource_name_un (name, type) UNIQUE KEY t_ds_datasource_name_un (name, type)
) ; );
-- ---------------------------- -- ----------------------------
-- Records of t_ds_datasource -- Records of t_ds_datasource
@ -342,7 +359,8 @@ CREATE TABLE t_ds_datasource (
-- Table structure for t_ds_error_command -- Table structure for t_ds_error_command
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS t_ds_error_command; DROP TABLE IF EXISTS t_ds_error_command;
CREATE TABLE t_ds_error_command ( CREATE TABLE t_ds_error_command
(
id int(11) NOT NULL, id int(11) NOT NULL,
command_type tinyint(4) DEFAULT NULL, command_type tinyint(4) DEFAULT NULL,
executor_id int(11) DEFAULT NULL, executor_id int(11) DEFAULT NULL,
@ -356,7 +374,7 @@ CREATE TABLE t_ds_error_command (
start_time datetime DEFAULT NULL, start_time datetime DEFAULT NULL,
update_time datetime DEFAULT NULL, update_time datetime DEFAULT NULL,
process_instance_priority int(11) DEFAULT NULL, process_instance_priority int(11) DEFAULT NULL,
worker_group varchar(64) , worker_group varchar(64),
message text, message text,
PRIMARY KEY (id) PRIMARY KEY (id)
); );
@ -369,7 +387,8 @@ CREATE TABLE t_ds_error_command (
-- Table structure for t_ds_process_definition -- Table structure for t_ds_process_definition
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS t_ds_process_definition; DROP TABLE IF EXISTS t_ds_process_definition;
CREATE TABLE t_ds_process_definition ( CREATE TABLE t_ds_process_definition
(
id int(11) NOT NULL AUTO_INCREMENT, id int(11) NOT NULL AUTO_INCREMENT,
code bigint(20) NOT NULL, code bigint(20) NOT NULL,
name varchar(255) DEFAULT NULL, name varchar(255) DEFAULT NULL,
@ -390,7 +409,7 @@ CREATE TABLE t_ds_process_definition (
PRIMARY KEY (id), PRIMARY KEY (id),
UNIQUE KEY process_unique (name,project_code) USING BTREE, UNIQUE KEY process_unique (name,project_code) USING BTREE,
UNIQUE KEY code_unique (code) UNIQUE KEY code_unique (code)
) ; );
-- ---------------------------- -- ----------------------------
-- Records of t_ds_process_definition -- Records of t_ds_process_definition
@ -400,7 +419,8 @@ CREATE TABLE t_ds_process_definition (
-- Table structure for t_ds_process_definition_log -- Table structure for t_ds_process_definition_log
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS t_ds_process_definition_log; DROP TABLE IF EXISTS t_ds_process_definition_log;
CREATE TABLE t_ds_process_definition_log ( CREATE TABLE t_ds_process_definition_log
(
id int(11) NOT NULL AUTO_INCREMENT, id int(11) NOT NULL AUTO_INCREMENT,
code bigint(20) NOT NULL, code bigint(20) NOT NULL,
name varchar(200) DEFAULT NULL, name varchar(200) DEFAULT NULL,
@ -421,13 +441,14 @@ CREATE TABLE t_ds_process_definition_log (
create_time datetime NOT NULL, create_time datetime NOT NULL,
update_time datetime DEFAULT NULL, update_time datetime DEFAULT NULL,
PRIMARY KEY (id) PRIMARY KEY (id)
) ; );
-- ---------------------------- -- ----------------------------
-- Table structure for t_ds_task_definition -- Table structure for t_ds_task_definition
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS t_ds_task_definition; DROP TABLE IF EXISTS t_ds_task_definition;
CREATE TABLE t_ds_task_definition ( CREATE TABLE t_ds_task_definition
(
id int(11) NOT NULL AUTO_INCREMENT, id int(11) NOT NULL AUTO_INCREMENT,
code bigint(20) NOT NULL, code bigint(20) NOT NULL,
name varchar(200) DEFAULT NULL, name varchar(200) DEFAULT NULL,
@ -449,15 +470,16 @@ CREATE TABLE t_ds_task_definition (
resource_ids varchar(255) DEFAULT NULL, resource_ids varchar(255) DEFAULT NULL,
create_time datetime NOT NULL, create_time datetime NOT NULL,
update_time datetime DEFAULT NULL, update_time datetime DEFAULT NULL,
PRIMARY KEY (id,code), PRIMARY KEY (id, code),
UNIQUE KEY task_unique (name,project_code) USING BTREE UNIQUE KEY task_unique (name,project_code) USING BTREE
) ; );
-- ---------------------------- -- ----------------------------
-- Table structure for t_ds_task_definition_log -- Table structure for t_ds_task_definition_log
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS t_ds_task_definition_log; DROP TABLE IF EXISTS t_ds_task_definition_log;
CREATE TABLE t_ds_task_definition_log ( CREATE TABLE t_ds_task_definition_log
(
id int(11) NOT NULL AUTO_INCREMENT, id int(11) NOT NULL AUTO_INCREMENT,
code bigint(20) NOT NULL, code bigint(20) NOT NULL,
name varchar(200) DEFAULT NULL, name varchar(200) DEFAULT NULL,
@ -482,13 +504,14 @@ CREATE TABLE t_ds_task_definition_log (
create_time datetime NOT NULL, create_time datetime NOT NULL,
update_time datetime DEFAULT NULL, update_time datetime DEFAULT NULL,
PRIMARY KEY (id) PRIMARY KEY (id)
) ; );
-- ---------------------------- -- ----------------------------
-- Table structure for t_ds_process_task_relation -- Table structure for t_ds_process_task_relation
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS t_ds_process_task_relation; DROP TABLE IF EXISTS t_ds_process_task_relation;
CREATE TABLE t_ds_process_task_relation ( CREATE TABLE t_ds_process_task_relation
(
id int(11) NOT NULL AUTO_INCREMENT, id int(11) NOT NULL AUTO_INCREMENT,
name varchar(200) DEFAULT NULL, name varchar(200) DEFAULT NULL,
process_definition_version int(11) DEFAULT NULL, process_definition_version int(11) DEFAULT NULL,
@ -503,13 +526,14 @@ CREATE TABLE t_ds_process_task_relation (
create_time datetime NOT NULL, create_time datetime NOT NULL,
update_time datetime DEFAULT NULL, update_time datetime DEFAULT NULL,
PRIMARY KEY (id) PRIMARY KEY (id)
) ; );
-- ---------------------------- -- ----------------------------
-- Table structure for t_ds_process_task_relation_log -- Table structure for t_ds_process_task_relation_log
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS t_ds_process_task_relation_log; DROP TABLE IF EXISTS t_ds_process_task_relation_log;
CREATE TABLE t_ds_process_task_relation_log ( CREATE TABLE t_ds_process_task_relation_log
(
id int(11) NOT NULL AUTO_INCREMENT, id int(11) NOT NULL AUTO_INCREMENT,
name varchar(200) DEFAULT NULL, name varchar(200) DEFAULT NULL,
process_definition_version int(11) DEFAULT NULL, process_definition_version int(11) DEFAULT NULL,
@ -526,13 +550,14 @@ CREATE TABLE t_ds_process_task_relation_log (
create_time datetime NOT NULL, create_time datetime NOT NULL,
update_time datetime DEFAULT NULL, update_time datetime DEFAULT NULL,
PRIMARY KEY (id) PRIMARY KEY (id)
) ; );
-- ---------------------------- -- ----------------------------
-- Table structure for t_ds_process_instance -- Table structure for t_ds_process_instance
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS t_ds_process_instance; DROP TABLE IF EXISTS t_ds_process_instance;
CREATE TABLE t_ds_process_instance ( CREATE TABLE t_ds_process_instance
(
id int(11) NOT NULL AUTO_INCREMENT, id int(11) NOT NULL AUTO_INCREMENT,
name varchar(255) DEFAULT NULL, name varchar(255) DEFAULT NULL,
process_definition_version int(11) DEFAULT NULL, process_definition_version int(11) DEFAULT NULL,
@ -564,7 +589,7 @@ CREATE TABLE t_ds_process_instance (
tenant_id int(11) NOT NULL DEFAULT '-1', tenant_id int(11) NOT NULL DEFAULT '-1',
var_pool longtext, var_pool longtext,
PRIMARY KEY (id) PRIMARY KEY (id)
) ; );
-- ---------------------------- -- ----------------------------
-- Records of t_ds_process_instance -- Records of t_ds_process_instance
@ -574,7 +599,8 @@ CREATE TABLE t_ds_process_instance (
-- Table structure for t_ds_project -- Table structure for t_ds_project
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS t_ds_project; DROP TABLE IF EXISTS t_ds_project;
CREATE TABLE t_ds_project ( CREATE TABLE t_ds_project
(
id int(11) NOT NULL AUTO_INCREMENT, id int(11) NOT NULL AUTO_INCREMENT,
name varchar(100) DEFAULT NULL, name varchar(100) DEFAULT NULL,
code bigint(20) NOT NULL, code bigint(20) NOT NULL,
@ -584,7 +610,7 @@ CREATE TABLE t_ds_project (
create_time datetime NOT NULL, create_time datetime NOT NULL,
update_time datetime DEFAULT NULL, update_time datetime DEFAULT NULL,
PRIMARY KEY (id) PRIMARY KEY (id)
) ; );
-- ---------------------------- -- ----------------------------
-- Records of t_ds_project -- Records of t_ds_project
@ -594,25 +620,28 @@ CREATE TABLE t_ds_project (
-- Table structure for t_ds_queue -- Table structure for t_ds_queue
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS t_ds_queue; DROP TABLE IF EXISTS t_ds_queue;
CREATE TABLE t_ds_queue ( CREATE TABLE t_ds_queue
(
id int(11) NOT NULL AUTO_INCREMENT, id int(11) NOT NULL AUTO_INCREMENT,
queue_name varchar(64) DEFAULT NULL, queue_name varchar(64) DEFAULT NULL,
queue varchar(64) DEFAULT NULL, queue varchar(64) DEFAULT NULL,
create_time datetime DEFAULT NULL, create_time datetime DEFAULT NULL,
update_time datetime DEFAULT NULL, update_time datetime DEFAULT NULL,
PRIMARY KEY (id) PRIMARY KEY (id)
) ; );
-- ---------------------------- -- ----------------------------
-- Records of t_ds_queue -- Records of t_ds_queue
-- ---------------------------- -- ----------------------------
INSERT INTO t_ds_queue VALUES ('1', 'default', 'default', null, null); INSERT INTO t_ds_queue
VALUES ('1', 'default', 'default', null, null);
-- ---------------------------- -- ----------------------------
-- Table structure for t_ds_relation_datasource_user -- Table structure for t_ds_relation_datasource_user
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS t_ds_relation_datasource_user; DROP TABLE IF EXISTS t_ds_relation_datasource_user;
CREATE TABLE t_ds_relation_datasource_user ( CREATE TABLE t_ds_relation_datasource_user
(
id int(11) NOT NULL AUTO_INCREMENT, id int(11) NOT NULL AUTO_INCREMENT,
user_id int(11) NOT NULL, user_id int(11) NOT NULL,
datasource_id int(11) DEFAULT NULL, datasource_id int(11) DEFAULT NULL,
@ -620,7 +649,7 @@ CREATE TABLE t_ds_relation_datasource_user (
create_time datetime DEFAULT NULL, create_time datetime DEFAULT NULL,
update_time datetime DEFAULT NULL, update_time datetime DEFAULT NULL,
PRIMARY KEY (id) PRIMARY KEY (id)
) ; );
-- ---------------------------- -- ----------------------------
-- Records of t_ds_relation_datasource_user -- Records of t_ds_relation_datasource_user
@ -630,13 +659,14 @@ CREATE TABLE t_ds_relation_datasource_user (
-- Table structure for t_ds_relation_process_instance -- Table structure for t_ds_relation_process_instance
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS t_ds_relation_process_instance; DROP TABLE IF EXISTS t_ds_relation_process_instance;
CREATE TABLE t_ds_relation_process_instance ( CREATE TABLE t_ds_relation_process_instance
(
id int(11) NOT NULL AUTO_INCREMENT, id int(11) NOT NULL AUTO_INCREMENT,
parent_process_instance_id int(11) DEFAULT NULL, parent_process_instance_id int(11) DEFAULT NULL,
parent_task_instance_id int(11) DEFAULT NULL, parent_task_instance_id int(11) DEFAULT NULL,
process_instance_id int(11) DEFAULT NULL, process_instance_id int(11) DEFAULT NULL,
PRIMARY KEY (id) PRIMARY KEY (id)
) ; );
-- ---------------------------- -- ----------------------------
-- Records of t_ds_relation_process_instance -- Records of t_ds_relation_process_instance
@ -646,7 +676,8 @@ CREATE TABLE t_ds_relation_process_instance (
-- Table structure for t_ds_relation_project_user -- Table structure for t_ds_relation_project_user
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS t_ds_relation_project_user; DROP TABLE IF EXISTS t_ds_relation_project_user;
CREATE TABLE t_ds_relation_project_user ( CREATE TABLE t_ds_relation_project_user
(
id int(11) NOT NULL AUTO_INCREMENT, id int(11) NOT NULL AUTO_INCREMENT,
user_id int(11) NOT NULL, user_id int(11) NOT NULL,
project_id int(11) DEFAULT NULL, project_id int(11) DEFAULT NULL,
@ -654,7 +685,7 @@ CREATE TABLE t_ds_relation_project_user (
create_time datetime DEFAULT NULL, create_time datetime DEFAULT NULL,
update_time datetime DEFAULT NULL, update_time datetime DEFAULT NULL,
PRIMARY KEY (id) PRIMARY KEY (id)
) ; );
-- ---------------------------- -- ----------------------------
-- Records of t_ds_relation_project_user -- Records of t_ds_relation_project_user
@ -664,7 +695,8 @@ CREATE TABLE t_ds_relation_project_user (
-- Table structure for t_ds_relation_resources_user -- Table structure for t_ds_relation_resources_user
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS t_ds_relation_resources_user; DROP TABLE IF EXISTS t_ds_relation_resources_user;
CREATE TABLE t_ds_relation_resources_user ( CREATE TABLE t_ds_relation_resources_user
(
id int(11) NOT NULL AUTO_INCREMENT, id int(11) NOT NULL AUTO_INCREMENT,
user_id int(11) NOT NULL, user_id int(11) NOT NULL,
resources_id int(11) DEFAULT NULL, resources_id int(11) DEFAULT NULL,
@ -672,7 +704,7 @@ CREATE TABLE t_ds_relation_resources_user (
create_time datetime DEFAULT NULL, create_time datetime DEFAULT NULL,
update_time datetime DEFAULT NULL, update_time datetime DEFAULT NULL,
PRIMARY KEY (id) PRIMARY KEY (id)
) ; );
-- ---------------------------- -- ----------------------------
-- Records of t_ds_relation_resources_user -- Records of t_ds_relation_resources_user
@ -682,7 +714,8 @@ CREATE TABLE t_ds_relation_resources_user (
-- Table structure for t_ds_relation_udfs_user -- Table structure for t_ds_relation_udfs_user
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS t_ds_relation_udfs_user; DROP TABLE IF EXISTS t_ds_relation_udfs_user;
CREATE TABLE t_ds_relation_udfs_user ( CREATE TABLE t_ds_relation_udfs_user
(
id int(11) NOT NULL AUTO_INCREMENT, id int(11) NOT NULL AUTO_INCREMENT,
user_id int(11) NOT NULL, user_id int(11) NOT NULL,
udf_id int(11) DEFAULT NULL, udf_id int(11) DEFAULT NULL,
@ -690,13 +723,14 @@ CREATE TABLE t_ds_relation_udfs_user (
create_time datetime DEFAULT NULL, create_time datetime DEFAULT NULL,
update_time datetime DEFAULT NULL, update_time datetime DEFAULT NULL,
PRIMARY KEY (id) PRIMARY KEY (id)
) ; );
-- ---------------------------- -- ----------------------------
-- Table structure for t_ds_resources -- Table structure for t_ds_resources
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS t_ds_resources; DROP TABLE IF EXISTS t_ds_resources;
CREATE TABLE t_ds_resources ( CREATE TABLE t_ds_resources
(
id int(11) NOT NULL AUTO_INCREMENT, id int(11) NOT NULL AUTO_INCREMENT,
alias varchar(64) DEFAULT NULL, alias varchar(64) DEFAULT NULL,
file_name varchar(64) DEFAULT NULL, file_name varchar(64) DEFAULT NULL,
@ -710,8 +744,8 @@ CREATE TABLE t_ds_resources (
full_name varchar(64) DEFAULT NULL, full_name varchar(64) DEFAULT NULL,
is_directory tinyint(4) DEFAULT NULL, is_directory tinyint(4) DEFAULT NULL,
PRIMARY KEY (id), PRIMARY KEY (id),
UNIQUE KEY t_ds_resources_un (full_name,type) UNIQUE KEY t_ds_resources_un (full_name, type)
) ; );
-- ---------------------------- -- ----------------------------
-- Records of t_ds_resources -- Records of t_ds_resources
@ -721,7 +755,8 @@ CREATE TABLE t_ds_resources (
-- Table structure for t_ds_schedules -- Table structure for t_ds_schedules
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS t_ds_schedules; DROP TABLE IF EXISTS t_ds_schedules;
CREATE TABLE t_ds_schedules ( CREATE TABLE t_ds_schedules
(
id int(11) NOT NULL AUTO_INCREMENT, id int(11) NOT NULL AUTO_INCREMENT,
process_definition_id int(11) NOT NULL, process_definition_id int(11) NOT NULL,
start_time datetime NOT NULL, start_time datetime NOT NULL,
@ -738,7 +773,7 @@ CREATE TABLE t_ds_schedules (
create_time datetime NOT NULL, create_time datetime NOT NULL,
update_time datetime NOT NULL, update_time datetime NOT NULL,
PRIMARY KEY (id) PRIMARY KEY (id)
) ; );
-- ---------------------------- -- ----------------------------
-- Records of t_ds_schedules -- Records of t_ds_schedules
@ -748,7 +783,8 @@ CREATE TABLE t_ds_schedules (
-- Table structure for t_ds_session -- Table structure for t_ds_session
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS t_ds_session; DROP TABLE IF EXISTS t_ds_session;
CREATE TABLE t_ds_session ( CREATE TABLE t_ds_session
(
id varchar(64) NOT NULL, id varchar(64) NOT NULL,
user_id int(11) DEFAULT NULL, user_id int(11) DEFAULT NULL,
ip varchar(45) DEFAULT NULL, ip varchar(45) DEFAULT NULL,
@ -764,7 +800,8 @@ CREATE TABLE t_ds_session (
-- Table structure for t_ds_task_instance -- Table structure for t_ds_task_instance
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS t_ds_task_instance; DROP TABLE IF EXISTS t_ds_task_instance;
CREATE TABLE t_ds_task_instance ( CREATE TABLE t_ds_task_instance
(
id int(11) NOT NULL AUTO_INCREMENT, id int(11) NOT NULL AUTO_INCREMENT,
name varchar(255) DEFAULT NULL, name varchar(255) DEFAULT NULL,
task_type varchar(50) NOT NULL, task_type varchar(50) NOT NULL,
@ -794,7 +831,7 @@ CREATE TABLE t_ds_task_instance (
var_pool longtext, var_pool longtext,
PRIMARY KEY (id), PRIMARY KEY (id),
FOREIGN KEY (process_instance_id) REFERENCES t_ds_process_instance (id) ON DELETE CASCADE FOREIGN KEY (process_instance_id) REFERENCES t_ds_process_instance (id) ON DELETE CASCADE
) ; );
-- ---------------------------- -- ----------------------------
-- Records of t_ds_task_instance -- Records of t_ds_task_instance
@ -804,7 +841,8 @@ CREATE TABLE t_ds_task_instance (
-- Table structure for t_ds_tenant -- Table structure for t_ds_tenant
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS t_ds_tenant; DROP TABLE IF EXISTS t_ds_tenant;
CREATE TABLE t_ds_tenant ( CREATE TABLE t_ds_tenant
(
id int(11) NOT NULL AUTO_INCREMENT, id int(11) NOT NULL AUTO_INCREMENT,
tenant_code varchar(64) DEFAULT NULL, tenant_code varchar(64) DEFAULT NULL,
description varchar(255) DEFAULT NULL, description varchar(255) DEFAULT NULL,
@ -812,7 +850,7 @@ CREATE TABLE t_ds_tenant (
create_time datetime DEFAULT NULL, create_time datetime DEFAULT NULL,
update_time datetime DEFAULT NULL, update_time datetime DEFAULT NULL,
PRIMARY KEY (id) PRIMARY KEY (id)
) ; );
-- ---------------------------- -- ----------------------------
-- Records of t_ds_tenant -- Records of t_ds_tenant
@ -822,7 +860,8 @@ CREATE TABLE t_ds_tenant (
-- Table structure for t_ds_udfs -- Table structure for t_ds_udfs
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS t_ds_udfs; DROP TABLE IF EXISTS t_ds_udfs;
CREATE TABLE t_ds_udfs ( CREATE TABLE t_ds_udfs
(
id int(11) NOT NULL AUTO_INCREMENT, id int(11) NOT NULL AUTO_INCREMENT,
user_id int(11) NOT NULL, user_id int(11) NOT NULL,
func_name varchar(100) NOT NULL, func_name varchar(100) NOT NULL,
@ -836,7 +875,7 @@ CREATE TABLE t_ds_udfs (
create_time datetime NOT NULL, create_time datetime NOT NULL,
update_time datetime NOT NULL, update_time datetime NOT NULL,
PRIMARY KEY (id) PRIMARY KEY (id)
) ; );
-- ---------------------------- -- ----------------------------
-- Records of t_ds_udfs -- Records of t_ds_udfs
@ -846,7 +885,8 @@ CREATE TABLE t_ds_udfs (
-- Table structure for t_ds_user -- Table structure for t_ds_user
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS t_ds_user; DROP TABLE IF EXISTS t_ds_user;
CREATE TABLE t_ds_user ( CREATE TABLE t_ds_user
(
id int(11) NOT NULL AUTO_INCREMENT, id int(11) NOT NULL AUTO_INCREMENT,
user_name varchar(64) DEFAULT NULL, user_name varchar(64) DEFAULT NULL,
user_password varchar(64) DEFAULT NULL, user_password varchar(64) DEFAULT NULL,
@ -860,7 +900,7 @@ CREATE TABLE t_ds_user (
state int(1) DEFAULT 1, state int(1) DEFAULT 1,
PRIMARY KEY (id), PRIMARY KEY (id),
UNIQUE KEY user_name_unique (user_name) UNIQUE KEY user_name_unique (user_name)
) ; );
-- ---------------------------- -- ----------------------------
-- Records of t_ds_user -- Records of t_ds_user
@ -870,7 +910,8 @@ CREATE TABLE t_ds_user (
-- Table structure for t_ds_worker_group -- Table structure for t_ds_worker_group
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS t_ds_worker_group; DROP TABLE IF EXISTS t_ds_worker_group;
CREATE TABLE t_ds_worker_group ( CREATE TABLE t_ds_worker_group
(
id bigint(11) NOT NULL AUTO_INCREMENT, id bigint(11) NOT NULL AUTO_INCREMENT,
name varchar(255) NOT NULL, name varchar(255) NOT NULL,
addr_list text NULL DEFAULT NULL, addr_list text NULL DEFAULT NULL,
@ -878,7 +919,7 @@ CREATE TABLE t_ds_worker_group (
update_time datetime NULL DEFAULT NULL, update_time datetime NULL DEFAULT NULL,
PRIMARY KEY (id), PRIMARY KEY (id),
UNIQUE KEY name_unique (name) UNIQUE KEY name_unique (name)
) ; );
-- ---------------------------- -- ----------------------------
-- Records of t_ds_worker_group -- Records of t_ds_worker_group
@ -888,36 +929,41 @@ CREATE TABLE t_ds_worker_group (
-- Table structure for t_ds_version -- Table structure for t_ds_version
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS t_ds_version; DROP TABLE IF EXISTS t_ds_version;
CREATE TABLE t_ds_version ( CREATE TABLE t_ds_version
(
id int(11) NOT NULL AUTO_INCREMENT, id int(11) NOT NULL AUTO_INCREMENT,
version varchar(200) NOT NULL, version varchar(200) NOT NULL,
PRIMARY KEY (id), PRIMARY KEY (id),
UNIQUE KEY version_UNIQUE (version) UNIQUE KEY version_UNIQUE (version)
) ; );
-- ---------------------------- -- ----------------------------
-- Records of t_ds_version -- Records of t_ds_version
-- ---------------------------- -- ----------------------------
INSERT INTO t_ds_version VALUES ('1', '1.4.0'); INSERT INTO t_ds_version
VALUES ('1', '1.4.0');
-- ---------------------------- -- ----------------------------
-- Records of t_ds_alertgroup -- Records of t_ds_alertgroup
-- ---------------------------- -- ----------------------------
INSERT INTO t_ds_alertgroup(alert_instance_ids, create_user_id, group_name, description, create_time, update_time) INSERT INTO t_ds_alertgroup(alert_instance_ids, create_user_id, group_name, description, create_time, update_time)
VALUES ('1,2', 1, 'default admin warning group', 'default admin warning group', '2018-11-29 10:20:39', '2018-11-29 10:20:39'); VALUES ('1,2', 1, 'default admin warning group', 'default admin warning group', '2018-11-29 10:20:39',
'2018-11-29 10:20:39');
-- ---------------------------- -- ----------------------------
-- Records of t_ds_user -- Records of t_ds_user
-- ---------------------------- -- ----------------------------
INSERT INTO t_ds_user INSERT INTO t_ds_user
VALUES ('1', 'admin', '7ad2410b2f4c074479a8937a28a22b8f', '0', 'xxx@qq.com', '', '0', '2018-03-27 15:48:50', '2018-10-24 17:40:22', null, 1); VALUES ('1', 'admin', '7ad2410b2f4c074479a8937a28a22b8f', '0', 'xxx@qq.com', '', '0', '2018-03-27 15:48:50',
'2018-10-24 17:40:22', null, 1);
-- ---------------------------- -- ----------------------------
-- Table structure for t_ds_plugin_define -- Table structure for t_ds_plugin_define
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS t_ds_plugin_define; DROP TABLE IF EXISTS t_ds_plugin_define;
CREATE TABLE t_ds_plugin_define ( CREATE TABLE t_ds_plugin_define
(
id int NOT NULL AUTO_INCREMENT, id int NOT NULL AUTO_INCREMENT,
plugin_name varchar(100) NOT NULL, plugin_name varchar(100) NOT NULL,
plugin_type varchar(100) NOT NULL, plugin_type varchar(100) NOT NULL,
@ -932,7 +978,8 @@ CREATE TABLE t_ds_plugin_define (
-- Table structure for t_ds_alert_plugin_instance -- Table structure for t_ds_alert_plugin_instance
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS t_ds_alert_plugin_instance; DROP TABLE IF EXISTS t_ds_alert_plugin_instance;
CREATE TABLE t_ds_alert_plugin_instance ( CREATE TABLE t_ds_alert_plugin_instance
(
id int NOT NULL AUTO_INCREMENT, id int NOT NULL AUTO_INCREMENT,
plugin_define_id int NOT NULL, plugin_define_id int NOT NULL,
plugin_instance_params text, plugin_instance_params text,

Loading…
Cancel
Save