Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: update demo data (#8789)
Danny Xu7394e390f949
diff --git a/backend/migrator/demo/default/10001##principal.sql b/backend/migrator/demo/default/10001##principal.sqldeleted file mode 100644index e15388e635..0000000000--- a/backend/migrator/demo/default/10001##principal.sql+++ /dev/null@@ -1,95 +0,0 @@--- End user id starts at 101, we reserve the range between 1 ~ 100 for internal use.--- Setting the id explicitly changes the next id value to be +1--- 101-INSERT INTO- principal (- id,- creator_id,- updater_id,- type,- name,- email,- password_hash- )-VALUES- (- 101,- 1,- 1,- 'END_USER',- 'Demo Owner',- '[email protected]',- -- 1024- '$2a$10$/65QFlHOmDzXshEMt/qYuunbJrXtRLcaYDcRODbyOPa/9/N0N8Zc2'- );---- 102-INSERT INTO- principal (- id,- creator_id,- updater_id,- type,- name,- email,- password_hash- )-VALUES- (- 102,- 1,- 1,- 'END_USER',- 'Jerry DBA',- '[email protected]',- -- 2048- '$2a$10$Q2NJib9bRvDkap1N1RDP2O3HyxjCldwfvGoxAzZL5gbbBgKAFD4cq'- );---- 103-INSERT INTO- principal (- id,- creator_id,- updater_id,- type,- name,- email,- password_hash- )-VALUES- (- 103,- 1,- 1,- 'END_USER',- 'Tom Dev',- '[email protected]',- -- 4096- '$2a$10$X5bvIWk4BKhEaZqlNLGjgOUB09i97olKBfjTQT49zMtNGnhoy6GIW'- );---- 104-INSERT INTO- principal (- id,- creator_id,- updater_id,- type,- name,- email,- password_hash- )-VALUES- (- 104,- 1,- 1,- 'END_USER',- 'Jane Dev',- '[email protected]',- -- 8192- '$2a$10$2QTgsuKDTGYe68lpeqRqouw1dQTRhssrYSnwQVzQUctQvhnVIccRa'- );--ALTER SEQUENCE principal_id_seq RESTART WITH 105;diff --git a/backend/migrator/demo/default/10010##workspace.sql b/backend/migrator/demo/default/10010##workspace.sqldeleted file mode 100644index 026f1d2de6..0000000000--- a/backend/migrator/demo/default/10010##workspace.sql+++ /dev/null@@ -1 +0,0 @@--- 0010 is reserved for workspace, but is not implemented yet.diff --git a/backend/migrator/demo/default/10020##member.sql b/backend/migrator/demo/default/10020##member.sqldeleted file mode 100644index 53e43b2e59..0000000000--- a/backend/migrator/demo/default/10020##member.sql+++ /dev/null@@ -1,49 +0,0 @@-INSERT INTO- member (- id,- creator_id,- updater_id,- status,- role,- principal_id- )-VALUES- (2001, 101, 101, 'ACTIVE', 'OWNER', 101);--INSERT INTO- member (- id,- creator_id,- updater_id,- status,- role,- principal_id- )-VALUES- (2002, 101, 101, 'ACTIVE', 'DBA', 102);--INSERT INTO- member (- id,- creator_id,- updater_id,- status,- role,- principal_id- )-VALUES- (2003, 101, 101, 'ACTIVE', 'DEVELOPER', 103);--INSERT INTO- member (- id,- creator_id,- updater_id,- status,- role,- principal_id- )-VALUES- (2004, 101, 101, 'ACTIVE', 'DEVELOPER', 104);--ALTER SEQUENCE member_id_seq RESTART WITH 2005;diff --git a/backend/migrator/demo/default/10030##project.sql b/backend/migrator/demo/default/10030##project.sqldeleted file mode 100644index 04e7c2709c..0000000000--- a/backend/migrator/demo/default/10030##project.sql+++ /dev/null@@ -1,111 +0,0 @@-INSERT INTO- project (- id,- creator_id,- updater_id,- name,- key,- workflow_type,- visibility,- tenant_mode,- db_name_template,- resource_id- )-VALUES- (- 3001,- 101,- 101,- 'Test (UI)',- 'TEST',- 'UI',- 'PUBLIC',- 'DISABLED',- '',- 'test-ui'- );--INSERT INTO- project (- id,- creator_id,- updater_id,- name,- key,- workflow_type,- visibility,- tenant_mode,- db_name_template,- resource_id- )-VALUES- (- 3002,- 101,- 101,- 'Shop (Git)',- 'SHP',- 'VCS',- 'PUBLIC',- 'DISABLED',- '',- 'shop-git'- );--INSERT INTO- project (- id,- creator_id,- updater_id,- name,- key,- workflow_type,- visibility,- tenant_mode,- db_name_template,- resource_id- )-VALUES- (- 3003,- 101,- 101,- 'Blog (Git)',- 'BLG',- 'VCS',- 'PUBLIC',- 'DISABLED',- '',- 'blog-git'- );--INSERT INTO- project (- id,- row_status,- creator_id,- updater_id,- name,- key,- workflow_type,- visibility,- tenant_mode,- db_name_template,- resource_id- )-VALUES- (- 3004,- 'ARCHIVED',- 101,- 101,- 'Retired Project',- 'RTR',- 'UI',- 'PUBLIC',- 'DISABLED',- '',- 'retired-project'- );--ALTER SEQUENCE principal_id_seq RESTART WITH 3005;diff --git a/backend/migrator/demo/default/10040##project_member.sql b/backend/migrator/demo/default/10040##project_member.sqldeleted file mode 100644index 1fb1d58281..0000000000--- a/backend/migrator/demo/default/10040##project_member.sql+++ /dev/null@@ -1,195 +0,0 @@--- Project 3001 membership-INSERT INTO- project_member (- id,- creator_id,- updater_id,- project_id,- role,- principal_id- )-VALUES- (- 4001,- 101,- 101,- 3001,- 'DEVELOPER',- 101- );--INSERT INTO- project_member (- id,- creator_id,- updater_id,- project_id,- role,- principal_id- )-VALUES- (- 4002,- 101,- 101,- 3001,- 'OWNER',- 102- );--INSERT INTO- project_member (- id,- creator_id,- updater_id,- project_id,- role,- principal_id- )-VALUES- (- 4003,- 101,- 101,- 3001,- 'DEVELOPER',- 103- );---- Project 3002 membership-INSERT INTO- project_member (- id,- creator_id,- updater_id,- project_id,- role,- principal_id- )-VALUES- (- 4004,- 101,- 101,- 3002,- 'OWNER',- 101- );--INSERT INTO- project_member (- id,- creator_id,- updater_id,- project_id,- role,- principal_id- )-VALUES- (- 4005,- 101,- 101,- 3002,- 'DEVELOPER',- 102- );---- Project 3003 membership-INSERT INTO- project_member (- id,- creator_id,- updater_id,- project_id,- role,- principal_id- )-VALUES- (- 4006,- 101,- 101,- 3003,- 'OWNER',- 101- );--INSERT INTO- project_member (- id,- creator_id,- updater_id,- project_id,- role,- principal_id- )-VALUES- (- 4007,- 101,- 101,- 3003,- 'DEVELOPER',- 103- );---- Project 3004 membership-INSERT INTO- project_member (- id,- creator_id,- updater_id,- project_id,- role,- principal_id- )-VALUES- (- 4008,- 101,- 101,- 3004,- 'OWNER',- 101- );--INSERT INTO- project_member (- id,- creator_id,- updater_id,- project_id,- role,- principal_id- )-VALUES- (- 4009,- 101,- 101,- 3004,- 'OWNER',- 102- );--INSERT INTO- project_member (- id,- creator_id,- updater_id,- project_id,- role,- principal_id- )-VALUES- (- 4010,- 101,- 101,- 3004,- 'DEVELOPER',- 103- );--ALTER SEQUENCE project_member_id_seq RESTART WITH 4011;diff --git a/backend/migrator/demo/default/10041##project_webhook.sql b/backend/migrator/demo/default/10041##project_webhook.sqldeleted file mode 100644index a679f3c7da..0000000000--- a/backend/migrator/demo/default/10041##project_webhook.sql+++ /dev/null@@ -1,142 +0,0 @@--- Project 3001 hook-INSERT INTO- project_webhook (- id,- creator_id,- updater_id,- project_id,- type,- name,- url,- activity_list- )-VALUES- (- 4101,- 101,- 101,- 3001,- 'bb.plugin.webhook.wecom',- 'WeCom',- 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=12345',- '{"bb.issue.create", "bb.issue.status.update", "bb.pipeline.task.status.update", "bb.issue.field.update", "bb.issue.comment.create"}'- );--INSERT INTO- project_webhook (- id,- creator_id,- updater_id,- project_id,- type,- name,- url,- activity_list- )-VALUES- (- 4102,- 101,- 101,- 3001,- 'bb.plugin.webhook.dingtalk',- 'DingTalk',- 'https://oapi.dingtalk.com/robot/send?access_token=12345',- '{"bb.issue.create", "bb.issue.status.update", "bb.pipeline.task.status.update", "bb.issue.field.update", "bb.issue.comment.create"}'- );---- Project 3002 hook-INSERT INTO- project_webhook (- id,- creator_id,- updater_id,- project_id,- type,- name,- url,- activity_list- )-VALUES- (- 4103,- 101,- 101,- 3002,- 'bb.plugin.webhook.feishu',- 'Feishu',- 'https://open.feishu.cn/open-apis/bot/v2/hook/12345',- '{"bb.issue.create", "bb.issue.status.update", "bb.pipeline.task.status.update", "bb.issue.field.update", "bb.issue.comment.create"}'- );--INSERT INTO- project_webhook (- id,- creator_id,- updater_id,- project_id,- type,- name,- url,- activity_list- )-VALUES- (- 4104,- 101,- 101,- 3002,- 'bb.plugin.webhook.slack',- 'Slack',- 'https://hooks.slack.com/services/12345',- '{"bb.issue.create", "bb.issue.status.update", "bb.pipeline.task.status.update", "bb.issue.field.update", "bb.issue.comment.create"}'- );---- Project 3003 hook-INSERT INTO- project_webhook (- id,- creator_id,- updater_id,- project_id,- type,- name,- url,- activity_list- )-VALUES- (- 4105,- 101,- 101,- 3003,- 'bb.plugin.webhook.discord',- 'Discord',- 'https://discord.com/api/webhooks/12345',- '{"bb.issue.create", "bb.issue.status.update", "bb.pipeline.task.status.update", "bb.issue.field.update", "bb.issue.comment.create"}'- );--INSERT INTO- project_webhook (- id,- creator_id,- updater_id,- project_id,- type,- name,- url,- activity_list- )-VALUES- (- 4106,- 101,- 101,- 3003,- 'bb.plugin.webhook.teams',- 'Teams',- 'https://foo.webhook.office.com/webhookb2/12345',- '{"bb.issue.create", "bb.issue.status.update", "bb.pipeline.task.status.update", "bb.issue.field.update", "bb.issue.comment.create"}'- );--ALTER SEQUENCE project_webhook_id_seq RESTART WITH 4107;diff --git a/backend/migrator/demo/default/10050##environment.sql b/backend/migrator/demo/default/10050##environment.sqldeleted file mode 100644index 9456c5d6d7..0000000000--- a/backend/migrator/demo/default/10050##environment.sql+++ /dev/null@@ -1,98 +0,0 @@-INSERT INTO- environment (- id,- creator_id,- updater_id,- name,- "order",- resource_id- )-VALUES- (- 5001,- 101,- 101,- 'Dev',- 0,- 'dev'- );--INSERT INTO- environment (- id,- creator_id,- updater_id,- name,- "order",- resource_id- )-VALUES- (- 5002,- 101,- 101,- 'Integration',- 1,- 'integration'- );--INSERT INTO- environment (- id,- creator_id,- updater_id,- name,- "order",- resource_id- )-VALUES- (- 5003,- 101,- 101,- 'Staging',- 2,- 'staging'- );--INSERT INTO- environment (- id,- creator_id,- updater_id,- name,- "order",- resource_id- )-VALUES- (- 5004,- 101,- 101,- 'Prod',- 3,- 'prod'- );--INSERT INTO- environment (- id,- row_status,- creator_id,- updater_id,- name,- "order",- resource_id- )-VALUES- (- 5005,- 'ARCHIVED',- 101,- 101,- 'Archived Env 1',- 4,- 'archived'- );--ALTER SEQUENCE environment_id_seq RESTART WITH 5006;diff --git a/backend/migrator/demo/default/10051##policy.sql b/backend/migrator/demo/default/10051##policy.sqldeleted file mode 100644index f8b8eabb65..0000000000--- a/backend/migrator/demo/default/10051##policy.sql+++ /dev/null@@ -1,172 +0,0 @@-INSERT INTO- policy (- id,- creator_id,- updater_id,- resource_type,- resource_id,- type,- payload- )-VALUES- (- 5101,- 101,- 101,- 'ENVIRONMENT',- 5001,- 'bb.policy.pipeline-approval',- '{"value":"MANUAL_APPROVAL_NEVER"}'- );--INSERT INTO- policy (- id,- creator_id,- updater_id,- resource_type,- resource_id,- type,- payload- )-VALUES- (- 5102,- 101,- 101,- 'ENVIRONMENT',- 5002,- 'bb.policy.pipeline-approval',- '{"value":"MANUAL_APPROVAL_NEVER"}'- );--INSERT INTO- policy (- id,- creator_id,- updater_id,- resource_type,- resource_id,- type,- payload- )-VALUES- (- 5103,- 101,- 101,- 'ENVIRONMENT',- 5003,- 'bb.policy.pipeline-approval',- '{"value":"MANUAL_APPROVAL_ALWAYS"}'- );--INSERT INTO- policy (- id,- creator_id,- updater_id,- resource_type,- resource_id,- type,- payload- )-VALUES- (- 5104,- 101,- 101,- 'ENVIRONMENT',- 5004,- 'bb.policy.pipeline-approval',- '{"value":"MANUAL_APPROVAL_NEVER"}'- );--INSERT INTO- policy (- id,- creator_id,- updater_id,- resource_type,- resource_id,- type,- payload- )-VALUES- (- 5105,- 101,- 101,- 'ENVIRONMENT',- 5005,- 'bb.policy.pipeline-approval',- '{"value":"MANUAL_APPROVAL_NEVER"}'- );--INSERT INTO- policy (- id,- creator_id,- updater_id,- resource_type,- resource_id,- type,- payload- )-VALUES- (- 5106,- 101,- 101,- 'ENVIRONMENT',- 5003,- 'bb.policy.backup-plan',- '{"schedule":"WEEKLY"}'- );--INSERT INTO- policy (- id,- creator_id,- updater_id,- resource_type,- resource_id,- type,- payload- )-VALUES- (- 5107,- 101,- 101,- 'ENVIRONMENT',- 5004,- 'bb.policy.backup-plan',- '{"schedule":"DAILY"}'- );---- Test upsert.-INSERT INTO- policy (- id,- creator_id,- updater_id,- resource_type,- resource_id,- type,- payload- )-VALUES- (- 5108,- 101,- 101,- 'ENVIRONMENT',- 5004,- 'bb.policy.pipeline-approval',- '{"value":"MANUAL_APPROVAL_ALWAYS"}'- )- ON CONFLICT(resource_type, resource_id, type) DO UPDATE SET- payload = excluded.payload;--ALTER SEQUENCE policy_id_seq RESTART WITH 5109;diff --git a/backend/migrator/demo/default/10060##instance.sql b/backend/migrator/demo/default/10060##instance.sqldeleted file mode 100644index 0ac153b0bb..0000000000--- a/backend/migrator/demo/default/10060##instance.sql+++ /dev/null@@ -1,253 +0,0 @@-INSERT INTO- instance (- id,- creator_id,- updater_id,- environment_id,- name,- engine,- engine_version,- external_link,- resource_id- )-VALUES- (- 6001,- 101,- 101,- 5001,- 'Localhost Dev MySQL',- 'MYSQL',- '8.0.19',- 'bytebase.com/database/mysql',- 'localhost-dev-mysql'- );--INSERT INTO- instance (- id,- creator_id,- updater_id,- environment_id,- name,- engine,- engine_version,- external_link,- resource_id- )-VALUES- (- 6002,- 101,- 101,- 5002,- 'On-premises Integration MySQL',- 'MYSQL',- '8.0.19',- 'bytebase.com/database/mysql',- 'onpremises-integration-mysql'- );--INSERT INTO- instance (- id,- creator_id,- updater_id,- environment_id,- name,- engine,- engine_version,- external_link,- resource_id- )-VALUES- (- 6003,- 101,- 101,- 5003,- 'On-premises Staging MySQL',- 'MYSQL',- '8.0.19',- 'bytebase.com/database/mysql',- 'onpremises-staging-mysql'- );--INSERT INTO- instance (- id,- creator_id,- updater_id,- environment_id,- name,- engine,- engine_version,- external_link,- resource_id- )-VALUES- (- 6004,- 101,- 101,- 5004,- 'On-premises Prod MySQL',- 'MYSQL',- '8.0.19',- 'bytebase.com/database/mysql',- 'onpremises-prod-mysql'- );--INSERT INTO- instance (- id,- creator_id,- updater_id,- environment_id,- name,- engine,- engine_version,- external_link,- resource_id- )-VALUES- (- 6005,- 101,- 101,- 5001,- 'Localhost Dev PostgreSQL',- 'POSTGRES',- '13.0',- 'bytebase.com/database/postgres',- 'localhost-dev-postgresql'- );--INSERT INTO- instance (- id,- creator_id,- updater_id,- environment_id,- name,- engine,- engine_version,- external_link,- resource_id- )-VALUES- (- 6006,- 101,- 101,- 5001,- 'Demo PostgreSQL on Render',- 'POSTGRES',- '13.0',- 'postgres://postgre_demo_user:3QixNmRMGhklX6B1lmCZ3ZsHFPIE5EgG@dpg-c8a7pcd0mal7gtod05p0/postgre_demo',- 'demo-postgresql-on-render'- );--INSERT INTO- instance (- id,- creator_id,- updater_id,- environment_id,- name,- engine,- engine_version,- external_link,- resource_id- )-VALUES- (- 6007,- 101,- 101,- 5001,- 'Localhost Dev TiDB',- 'TIDB',- '5.7.25-TiDB-v5.2.1',- 'bytebase.com/database/tidb',- 'localhost-dev-tidb'- );--INSERT INTO- instance (- id,- creator_id,- updater_id,- environment_id,- name,- engine,- engine_version,- external_link,- resource_id- )-VALUES- (- 6008,- 101,- 101,- 5001,- 'Localhost Dev ClickHouse',- 'CLICKHOUSE',- '21.10.2.15',- 'bytebase.com/database/clickhouse',- 'localhost-dev-clickhouse'- );--INSERT INTO- instance (- id,- creator_id,- updater_id,- environment_id,- name,- engine,- engine_version,- external_link,- resource_id- )-VALUES- (- 6009,- 101,- 101,- 5001,- 'Localhost Dev Snowflake',- 'SNOWFLAKE',- '21.10.2.15',- 'bytebase.com/database/snowflake',- 'localhost-dev-snowflake'- );--INSERT INTO- instance (- id,- row_status,- creator_id,- updater_id,- environment_id,- name,- engine,- engine_version,- external_link,- resource_id- )-VALUES- (- 6010,- 'ARCHIVED',- 101,- 101,- 5004,- 'Retired Prod MySQL',- 'MYSQL',- '5.7.25',- 'bytebase.com/database/mysql',- 'retired-prod-mysql'- );--ALTER SEQUENCE instance_id_seq RESTART WITH 6011;diff --git a/backend/migrator/demo/default/10061##instance_user.sql b/backend/migrator/demo/default/10061##instance_user.sqldeleted file mode 100644index 951c36776c..0000000000--- a/backend/migrator/demo/default/10061##instance_user.sql+++ /dev/null@@ -1,115 +0,0 @@-INSERT INTO- instance_user (- id,- creator_id,- updater_id,- instance_id,- name,- "grant"- )-VALUES- (- 6101,- 1,- 1,- 6001,- '`root`@`%`',- 'GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, SHUTDOWN, PROCESS, FILE, REFERENCES, INDEX, ALTER, SHOW DATABASES, SUPER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, REPLICATION SLAVE, REPLICATION CLIENT, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, CREATE USER, EVENT, TRIGGER, CREATE TABLESPACE, CREATE ROLE, DROP ROLE ON *.* TO `root`@`localhost` WITH GRANT OPTION'- );--INSERT INTO- instance_user (- id,- creator_id,- updater_id,- instance_id,- name,- "grant"- )-VALUES- (- 6102,- 1,- 1,- 6002,- '`root`@`%`',- 'GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, SHUTDOWN, PROCESS, FILE, REFERENCES, INDEX, ALTER, SHOW DATABASES, SUPER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, REPLICATION SLAVE, REPLICATION CLIENT, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, CREATE USER, EVENT, TRIGGER, CREATE TABLESPACE, CREATE ROLE, DROP ROLE ON *.* TO `root`@`localhost` WITH GRANT OPTION'- );--INSERT INTO- instance_user (- id,- creator_id,- updater_id,- instance_id,- name,- "grant"- )-VALUES- (- 6103,- 1,- 1,- 6003,- '`root`@`%`',- 'GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, SHUTDOWN, PROCESS, FILE, REFERENCES, INDEX, ALTER, SHOW DATABASES, SUPER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, REPLICATION SLAVE, REPLICATION CLIENT, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, CREATE USER, EVENT, TRIGGER, CREATE TABLESPACE, CREATE ROLE, DROP ROLE ON *.* TO `root`@`localhost` WITH GRANT OPTION'- );--INSERT INTO- instance_user (- id,- creator_id,- updater_id,- instance_id,- name,- "grant"- )-VALUES- (- 6104,- 1,- 1,- 6004,- '`root`@`%`',- 'GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, SHUTDOWN, PROCESS, FILE, REFERENCES, INDEX, ALTER, SHOW DATABASES, SUPER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, REPLICATION SLAVE, REPLICATION CLIENT, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, CREATE USER, EVENT, TRIGGER, CREATE TABLESPACE, CREATE ROLE, DROP ROLE ON *.* TO `root`@`localhost` WITH GRANT OPTION'- );--INSERT INTO- instance_user (- id,- creator_id,- updater_id,- instance_id,- name,- "grant"- )-VALUES- (- 6105,- 1,- 1,- 6005,- '`root`@`%`',- 'GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, SHUTDOWN, PROCESS, FILE, REFERENCES, INDEX, ALTER, SHOW DATABASES, SUPER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, REPLICATION SLAVE, REPLICATION CLIENT, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, CREATE USER, EVENT, TRIGGER, CREATE TABLESPACE, CREATE ROLE, DROP ROLE ON *.* TO `root`@`localhost` WITH GRANT OPTION'- );--INSERT INTO- instance_user (- id,- creator_id,- updater_id,- instance_id,- name,- "grant"- )-VALUES- (- 6106,- 1,- 1,- 6006,- '`root`@`%`',- 'GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, SHUTDOWN, PROCESS, FILE, REFERENCES, INDEX, ALTER, SHOW DATABASES, SUPER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, REPLICATION SLAVE, REPLICATION CLIENT, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, CREATE USER, EVENT, TRIGGER, CREATE TABLESPACE, CREATE ROLE, DROP ROLE ON *.* TO `root`@`localhost` WITH GRANT OPTION'- );--ALTER SEQUENCE instance_user_id_seq RESTART WITH 6107;diff --git a/backend/migrator/demo/default/10070##db.sql b/backend/migrator/demo/default/10070##db.sqldeleted file mode 100644index df338240ca..0000000000--- a/backend/migrator/demo/default/10070##db.sql+++ /dev/null@@ -1,306 +0,0 @@--- Database for sandbox environment instance 6001-INSERT INTO- db (- id,- creator_id,- updater_id,- instance_id,- project_id,- name,- sync_status,- last_successful_sync_ts,- schema_version- )-VALUES- (- 7002,- 101,- 101,- 6001,- 3001,- 'testdb_dev',- 'OK',- 1624558090,- ''- );--INSERT INTO- db (- id,- creator_id,- updater_id,- instance_id,- project_id,- name,- sync_status,- last_successful_sync_ts,- schema_version- )-VALUES- (- 7003,- 101,- 101,- 6001,- 3002,- 'shop',- 'OK',- 0,- ''- );--INSERT INTO- db (- id,- creator_id,- updater_id,- instance_id,- project_id,- name,- sync_status,- last_successful_sync_ts,- schema_version- )-VALUES- (- 7004,- 101,- 101,- 6001,- 3003,- 'blog',- 'OK',- 0,- ''- );---- Database for integration environment instance 6002-INSERT INTO- db (- id,- creator_id,- updater_id,- instance_id,- project_id,- name,- sync_status,- last_successful_sync_ts,- schema_version- )-VALUES- (- 7006,- 101,- 101,- 6002,- 3001,- 'testdb_integration',- 'OK',- 0,- ''- );--INSERT INTO- db (- id,- creator_id,- updater_id,- instance_id,- project_id,- name,- sync_status,- last_successful_sync_ts,- schema_version- )-VALUES- (- 7007,- 101,- 101,- 6002,- 3002,- 'shop',- 'OK',- 0,- ''- );--INSERT INTO- db (- id,- creator_id,- updater_id,- instance_id,- project_id,- name,- sync_status,- last_successful_sync_ts,- schema_version- )-VALUES- (- 7008,- 101,- 101,- 6002,- 3003,- 'blog',- 'OK',- 0,- ''- );---- Database for staging environment instance 6003-INSERT INTO- db (- id,- creator_id,- updater_id,- instance_id,- project_id,- name,- sync_status,- last_successful_sync_ts,- schema_version- )-VALUES- (- 7010,- 101,- 101,- 6003,- 3001,- 'testdb_staging',- 'OK',- 0,- ''- );--INSERT INTO- db (- id,- creator_id,- updater_id,- instance_id,- project_id,- name,- sync_status,- last_successful_sync_ts,- schema_version- )-VALUES- (- 7011,- 101,- 101,- 6003,- 3002,- 'shop',- 'OK',- 0,- ''- );--INSERT INTO- db (- id,- creator_id,- updater_id,- instance_id,- project_id,- name,- sync_status,- last_successful_sync_ts,- schema_version- )-VALUES- (- 7012,- 101,- 101,- 6003,- 3003,- 'blog',- 'OK',- 0,- ''- );---- Database for prod environment instance 6004-INSERT INTO- db (- id,- creator_id,- updater_id,- instance_id,- project_id,- name,- sync_status,- last_successful_sync_ts,- schema_version- )-VALUES- (- 7014,- 101,- 101,- 6004,- 3001,- 'testdb_prod',- 'OK',- 0,- ''- );--INSERT INTO- db (- id,- creator_id,- updater_id,- instance_id,- project_id,- name,- sync_status,- last_successful_sync_ts,- schema_version- )-VALUES- (- 7015,- 101,- 101,- 6004,- 3002,- 'shop',- 'OK',- 0,- ''- );--INSERT INTO- db (- id,- creator_id,- updater_id,- instance_id,- project_id,- name,- sync_status,- last_successful_sync_ts,- schema_version- )-VALUES- (- 7016,- 101,- 101,- 6004,- 3003,- 'blog',- 'OK',- 0,- ''- );---ALTER SEQUENCE db_id_seq RESTART WITH 7023;diff --git a/backend/migrator/demo/default/10071##db_schema.sql b/backend/migrator/demo/default/10071##db_schema.sqldeleted file mode 100644index bd9ce466b3..0000000000--- a/backend/migrator/demo/default/10071##db_schema.sql+++ /dev/null@@ -1,205 +0,0 @@-INSERT INTO- db_schema (- id,- creator_id,- updater_id,- database_id,- metadata- )-VALUES- (- 7101,- 101,- 101,- 7002,- '{"name": "testdb_dev", "schemas": [{"tables": [{"name": "hello", "engine": "InnoDB", "columns": [{"name": "id", "type": "int", "nullable": true, "position": 1}], "dataSize": "16384", "collation": "utf8mb4_0900_ai_ci"}]}], "collation": "utf8mb4_0900_ai_ci", "characterSet": "utf8mb4"}'- );--INSERT INTO- db_schema (- id,- creator_id,- updater_id,- database_id,- metadata- )-VALUES- (- 7102,- 101,- 101,- 7003,- '{"name": "shop", "schemas": [{"tables": [{"name": "hello", "engine": "InnoDB", "columns": [{"name": "id", "type": "int", "nullable": true, "position": 1}], "dataSize": "16384", "collation": "utf8mb4_0900_ai_ci"}]}], "collation": "utf8mb4_0900_ai_ci", "characterSet": "utf8mb4"}'- );--INSERT INTO- db_schema (- id,- creator_id,- updater_id,- database_id,- metadata- )-VALUES- (- 7103,- 101,- 101,- 7004,- '{"name": "blog", "schemas": [{"tables": [{"name": "hello", "engine": "InnoDB", "columns": [{"name": "id", "type": "int", "nullable": true, "position": 1}], "dataSize": "16384", "collation": "utf8mb4_0900_ai_ci"}]}], "collation": "utf8mb4_0900_ai_ci", "characterSet": "utf8mb4"}'- );--INSERT INTO- db_schema (- id,- creator_id,- updater_id,- database_id,- metadata- )-VALUES- (- 7104,- 101,- 101,- 7006,- '{"name": "testdb_integration", "schemas": [{"tables": [{"name": "hello", "engine": "InnoDB", "columns": [{"name": "id", "type": "int", "nullable": true, "position": 1}], "dataSize": "16384", "collation": "utf8mb4_0900_ai_ci"}]}], "collation": "utf8mb4_0900_ai_ci", "characterSet": "utf8mb4"}'- );--INSERT INTO- db_schema (- id,- creator_id,- updater_id,- database_id,- metadata- )-VALUES- (- 7105,- 101,- 101,- 7007,- '{"name": "shop", "schemas": [{"tables": [{"name": "hello", "engine": "InnoDB", "columns": [{"name": "id", "type": "int", "nullable": true, "position": 1}], "dataSize": "16384", "collation": "utf8mb4_0900_ai_ci"}]}], "collation": "utf8mb4_0900_ai_ci", "characterSet": "utf8mb4"}'- );--INSERT INTO- db_schema (- id,- creator_id,- updater_id,- database_id,- metadata- )-VALUES- (- 7106,- 101,- 101,- 7008,- '{"name": "blog", "schemas": [{"tables": [{"name": "hello", "engine": "InnoDB", "columns": [{"name": "id", "type": "int", "nullable": true, "position": 1}], "dataSize": "16384", "collation": "utf8mb4_0900_ai_ci"}]}], "collation": "utf8mb4_0900_ai_ci", "characterSet": "utf8mb4"}'- );--INSERT INTO- db_schema (- id,- creator_id,- updater_id,- database_id,- metadata- )-VALUES- (- 7107,- 101,- 101,- 7010,- '{"name": "testdb_staging", "schemas": [{"tables": [{"name": "hello", "engine": "InnoDB", "columns": [{"name": "id", "type": "int", "nullable": true, "position": 1}], "dataSize": "16384", "collation": "utf8mb4_0900_ai_ci"}]}], "collation": "utf8mb4_0900_ai_ci", "characterSet": "utf8mb4"}'- );--INSERT INTO- db_schema (- id,- creator_id,- updater_id,- database_id,- metadata- )-VALUES- (- 7108,- 101,- 101,- 7011,- '{"name": "shop", "schemas": [{"tables": [{"name": "hello", "engine": "InnoDB", "columns": [{"name": "id", "type": "int", "nullable": true, "position": 1}], "dataSize": "16384", "collation": "utf8mb4_0900_ai_ci"}]}], "collation": "utf8mb4_0900_ai_ci", "characterSet": "utf8mb4"}'- );--INSERT INTO- db_schema (- id,- creator_id,- updater_id,- database_id,- metadata- )-VALUES- (- 7109,- 101,- 101,- 7012,- '{"name": "blog", "schemas": [{"tables": [{"name": "hello", "engine": "InnoDB", "columns": [{"name": "id", "type": "int", "nullable": true, "position": 1}], "dataSize": "16384", "collation": "utf8mb4_0900_ai_ci"}]}], "collation": "utf8mb4_0900_ai_ci", "characterSet": "utf8mb4"}'- );--INSERT INTO- db_schema (- id,- creator_id,- updater_id,- database_id,- metadata- )-VALUES- (- 7110,- 101,- 101,- 7014,- '{"name": "testdb_prod", "schemas": [{"tables": [{"name": "hello", "engine": "InnoDB", "columns": [{"name": "id", "type": "int", "nullable": true, "position": 1}], "dataSize": "16384", "collation": "utf8mb4_0900_ai_ci"}]}], "collation": "utf8mb4_0900_ai_ci", "characterSet": "utf8mb4"}'- );--INSERT INTO- db_schema (- id,- creator_id,- updater_id,- database_id,- metadata- )-VALUES- (- 7111,- 101,- 101,- 7015,- '{"name": "shop", "schemas": [{"tables": [{"name": "hello", "engine": "InnoDB", "columns": [{"name": "id", "type": "int", "nullable": true, "position": 1}], "dataSize": "16384", "collation": "utf8mb4_0900_ai_ci"}]}], "collation": "utf8mb4_0900_ai_ci", "characterSet": "utf8mb4"}'- );--INSERT INTO- db_schema (- id,- creator_id,- updater_id,- database_id,- metadata- )-VALUES- (- 7112,- 101,- 101,- 7016,- '{"name": "blog", "schemas": [{"tables": [{"name": "hello", "engine": "InnoDB", "columns": [{"name": "id", "type": "int", "nullable": true, "position": 1}], "dataSize": "16384", "collation": "utf8mb4_0900_ai_ci"}]}], "collation": "utf8mb4_0900_ai_ci", "characterSet": "utf8mb4"}'- );--ALTER SEQUENCE db_schema_id_seq RESTART WITH 7113;diff --git a/backend/migrator/demo/default/10074##backup.sql b/backend/migrator/demo/default/10074##backup.sqldeleted file mode 100644index 177ee05213..0000000000--- a/backend/migrator/demo/default/10074##backup.sql+++ /dev/null@@ -1,267 +0,0 @@--- Backup for database 7015 (shop database in prod environment)-INSERT INTO- backup (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- database_id,- name,- status,- type,- storage_backend,- migration_history_version,- path,- comment- )-VALUES- (- 7401,- 101,- 1629136800,- 101,- 1629136800,- 7015,- 'shop-prod-20210817T094000',- 'DONE',- 'MANUAL',- 'LOCAL',- 'v1_20210817094000',- 'data/backup/db/7015/shop-prod-20210817T094000.sql',- ''- );--INSERT INTO- backup (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- database_id,- name,- status,- type,- storage_backend,- migration_history_version,- path,- comment- )-VALUES- (- 7402,- 101,- 1629250800,- 101,- 1629250800,- 7015,- 'shop-prod-20210818T140000',- 'DONE',- 'MANUAL',- 'LOCAL',- 'v2_20210818140000',- 'data/backup/db/7015/shop-prod-20210818T140000.sql',- ''- );--INSERT INTO- backup (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- database_id,- name,- status,- type,- storage_backend,- migration_history_version,- path,- comment- )-VALUES- (- 7403,- 101,- 1627754400,- 101,- 1627754400,- 7015,- 'shop-prod-20210801T020000-autobackup',- 'FAILED',- 'AUTOMATIC',- 'LOCAL',- 'v3_20210801020000',- 'data/backup/db/7015/shop-prod-20210801T020000-autobackup.sql',- 'Something unfortunate happened. Here is a long long long long long long long long long long long long long long long long long long long long long long long long error message.'- );--INSERT INTO- backup (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- database_id,- name,- status,- type,- storage_backend,- migration_history_version,- path,- comment- )-VALUES- (- 7404,- 101,- 1628359200,- 101,- 1628359200,- 7015,- 'shop-prod-20210808T020000-autobackup',- 'DONE',- 'AUTOMATIC',- 'LOCAL',- 'v3_20210808020000',- 'data/backup/db/7015/shop-prod-20210808T020000-autobackup.sql',- ''- );---- Backup for database 7016 (blog database in prod environment)-INSERT INTO- backup (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- database_id,- name,- status,- type,- storage_backend,- migration_history_version,- path,- comment- )-VALUES- (- 7405,- 101,- 1629250800,- 101,- 1629250800,- 7016,- 'blog-prod-20210818T094000',- 'DONE',- 'MANUAL',- 'LOCAL',- 'v1_20210818094000',- 'data/backup/db/7016/blog-prod-20210818T094000.sql',- ''- );--INSERT INTO- backup (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- database_id,- name,- status,- type,- storage_backend,- migration_history_version,- path,- comment- )-VALUES- (- 7406,- 101,- 1629337200,- 101,- 1629337200,- 7016,- 'blog-prod-20210819T140000',- 'DONE',- 'MANUAL',- 'LOCAL',- 'v2_20210819140000',- 'data/backup/db/7016/blog-prod-20210819T140000.sql',- ''- );--INSERT INTO- backup (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- database_id,- name,- status,- type,- storage_backend,- migration_history_version,- path,- comment- )-VALUES- (- 7407,- 101,- 1627754400,- 101,- 1627754400,- 7016,- 'blog-prod-20210801T020000-autobackup',- 'FAILED',- 'AUTOMATIC',- 'LOCAL',- 'v3_20210801020000',- 'data/backup/db/7016/blog-prod-20210801T020000-autobackup.sql',- 'Something unfortunate happened. Here is a long long long long long long long long long long long long long long long long long long long long long long long long error message.'- );--INSERT INTO- backup (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- database_id,- name,- status,- type,- storage_backend,- migration_history_version,- path,- comment- )-VALUES- (- 7408,- 101,- 1628359200,- 101,- 1628359200,- 7016,- 'blog-prod-20210808T020000-autobackup',- 'DONE',- 'AUTOMATIC',- 'LOCAL',- 'v3_20210808020000',- 'data/backup/db/7016/blog-prod-20210808T020000-autobackup.sql',- ''- );--ALTER SEQUENCE backup_id_seq RESTART WITH 7409;diff --git a/backend/migrator/demo/default/10080##data_source.sql b/backend/migrator/demo/default/10080##data_source.sqldeleted file mode 100644index 440a28a3d6..0000000000--- a/backend/migrator/demo/default/10080##data_source.sql+++ /dev/null@@ -1,244 +0,0 @@-INSERT INTO- data_source (- id,- creator_id,- updater_id,- instance_id,- name,- TYPE,- host,- port,- username,- PASSWORD- )-VALUES- (- 8001,- 1,- 1,- 6001,- 'Admin data source',- 'ADMIN',- '127.0.0.1',- '3306',- 'root',- 'testpwd1'- );--INSERT INTO- data_source (- id,- creator_id,- updater_id,- instance_id,- name,- TYPE,- host,- port,- username,- PASSWORD- )-VALUES- (- 8002,- 1,- 1,- 6002,- 'Admin data source',- 'ADMIN',- 'mysql.integration.example.com',- '3306',- 'admin',- 'Integration12345'- );--INSERT INTO- data_source (- id,- creator_id,- updater_id,- instance_id,- name,- TYPE,- host,- port,- username,- PASSWORD- )-VALUES- (- 8003,- 1,- 1,- 6003,- 'Admin data source',- 'ADMIN',- 'mysql.staging.example.com',- '3306',- 'admin',- 'Staging12345'- );--INSERT INTO- data_source (- id,- creator_id,- updater_id,- instance_id,- name,- TYPE,- host,- port,- username,- PASSWORD- )-VALUES- (- 8004,- 1,- 1,- 6004,- 'Admin data source',- 'ADMIN',- 'mysql.prod.example.com',- '3306',- 'root',- 'testpwd1'- );--INSERT INTO- data_source (- id,- creator_id,- updater_id,- instance_id,- name,- TYPE,- host,- port,- username,- PASSWORD- )-VALUES- (- 8005,- 1,- 1,- 6005,- 'Admin data source',- 'ADMIN',- '127.0.0.1',- '5432',- 'postgres',- ''- );--INSERT INTO- data_source (- id,- creator_id,- updater_id,- instance_id,- name,- TYPE,- host,- port,- username,- PASSWORD- )-VALUES- (- 8006,- 1,- 1,- 6006,- 'Admin data source',- 'ADMIN',- 'dpg-c8a7pcd0mal7gtod05p0',- '5432',- 'postgre_demo_user',- '3QixNmRMGhklX6B1lmCZ3ZsHFPIE5EgG'- );--INSERT INTO- data_source (- id,- creator_id,- updater_id,- instance_id,- name,- TYPE,- host,- port,- username,- PASSWORD- )-VALUES- (- 8007,- 1,- 1,- 6007,- 'Admin data source',- 'ADMIN',- '127.0.0.1',- '4000',- 'root',- ''- );--INSERT INTO- data_source (- id,- creator_id,- updater_id,- instance_id,- name,- TYPE,- host,- port,- username,- PASSWORD- )-VALUES- (- 8008,- 1,- 1,- 6008,- 'Admin data source',- 'ADMIN',- '127.0.0.1',- '9000',- '',- ''- );--INSERT INTO- data_source (- id,- creator_id,- updater_id,- instance_id,- name,- TYPE,- host,- port,- username,- PASSWORD- )-VALUES- (- 8009,- 1,- 1,- 6009,- 'Admin data source',- 'ADMIN',- '127.0.0.1',- '',- '',- ''- );--ALTER SEQUENCE data_source_id_seq RESTART WITH 8010;diff --git a/backend/migrator/demo/default/10090##pipeline.sql b/backend/migrator/demo/default/10090##pipeline.sqldeleted file mode 100644index c222a3e3ad..0000000000--- a/backend/migrator/demo/default/10090##pipeline.sql+++ /dev/null@@ -1,191 +0,0 @@--- A single stage, single task "hello world"-INSERT INTO- pipeline (- id,- creator_id,- updater_id,- project_id,- name- )-VALUES- (- 9001,- 101,- 101,- 3001,- 'Pipeline - Hello world'- );---- A multiple stage Pipeline for simulating webhook push event to create table for shop project database.-INSERT INTO- pipeline (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- project_id,- name- )-VALUES- (- 9002,- 1,- 1624873710,- 1,- 1624873710,- 3002,- 'Pipeline - Create product table'- );---- A two stage, each containing a single create table task, the 1st task has a failed task run-INSERT INTO- pipeline (- id,- creator_id,- updater_id,- project_id,- name- )-VALUES- (- 9003,- 103,- 103,- 3001,- 'Pipeline - Create table ''tbl1'''- );---- Pipeline for simulating webhook push event to create table for blog project dev database.-INSERT INTO- pipeline (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- project_id,- name- )-VALUES- (- 9004,- 1,- 1624865387,- 1,- 1624865387,- 3003,- 'Pipeline - Create user, post, comment table for dev environment'- );---- Pipeline for simulating webhook push event to create table for blog project integration database.-INSERT INTO- pipeline (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- project_id,- name- )-VALUES- (- 9005,- 1,- 1624866790,- 1,- 1624866790,- 3003,- 'Pipeline - Create user, post, comment table for integration environment'- );---- Pipeline for simulating webhook push event to create table for blog project staging database.-INSERT INTO- pipeline (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- project_id,- name- )-VALUES- (- 9006,- 1,- 1624868407,- 1,- 1624868407,- 3003,- 'Pipeline - Create user, post, comment table for staging environment'- );---- Pipeline for simulating webhook push event to create table for blog project prod database.-INSERT INTO- pipeline (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- project_id,- name- )-VALUES- (- 9007,- 1,- 1624868680,- 1,- 1624868680,- 3003,- 'Pipeline - Create user, post, comment table for prod environment'- );---- Pipeline for simulating webhook push event to alter table for blog project dev database.-INSERT INTO- pipeline (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- project_id,- name- )-VALUES- (- 9008,- 1,- 1624869944,- 1,- 1624869944,- 3003,- 'Pipeline - Add created_at column to user,post,comment table for dev environment'- );---- Pipeline for multi-stage create table UI workflow-INSERT INTO- pipeline (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- project_id,- name- )-VALUES- (- 9009,- 103,- 1624879944,- 103,- 1624879944,- 3001,- 'Pipeline - Create a new table tbl2'- );--ALTER SEQUENCE pipeline_id_seq RESTART WITH 9010;diff --git a/backend/migrator/demo/default/10100##stage.sql b/backend/migrator/demo/default/10100##stage.sqldeleted file mode 100644index 7cb971f27a..0000000000--- a/backend/migrator/demo/default/10100##stage.sql+++ /dev/null@@ -1,366 +0,0 @@--- Stage for Pipeline 9001 "Hello world"-INSERT INTO- stage (- id,- creator_id,- updater_id,- pipeline_id,- environment_id,- name- )-VALUES- (- 10001,- 101,- 101,- 9001,- 5004,- 'Prod'- );---- Stage for Pipeline 9002 simulating webhook push event-INSERT INTO- stage (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- pipeline_id,- environment_id,- name- )-VALUES- (- 10002,- 1,- 1624873710,- 1,- 1624873710,- 9002,- 5001,- 'Dev'- );--INSERT INTO- stage (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- pipeline_id,- environment_id,- name- )-VALUES- (- 10003,- 1,- 1624873710,- 1,- 1624873710,- 9002,- 5002,- 'Integration'- );--INSERT INTO- stage (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- pipeline_id,- environment_id,- name- )-VALUES- (- 10004,- 1,- 1624873710,- 1,- 1624873710,- 9002,- 5003,- 'Staging'- );--INSERT INTO- stage (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- pipeline_id,- environment_id,- name- )-VALUES- (- 10005,- 1,- 1624873710,- 1,- 1624873710,- 9002,- 5004,- 'Prod'- );---- Stage for Pipeline 9003 create table-INSERT INTO- stage (- id,- creator_id,- updater_id,- pipeline_id,- environment_id,- name- )-VALUES- (- 10006,- 103,- 103,- 9003,- 5001,- 'Dev'- );--INSERT INTO- stage (- id,- creator_id,- updater_id,- pipeline_id,- environment_id,- name- )-VALUES- (- 10007,- 103,- 103,- 9003,- 5002,- 'Integration'- );---- Stage for Pipeline 9004 simulating webhook push event-INSERT INTO- stage (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- pipeline_id,- environment_id,- name- )-VALUES- (- 10008,- 1,- 1624865387,- 1,- 1624865387,- 9004,- 5001,- 'Dev'- );---- Stage for Pipeline 9005 simulating webhook push event-INSERT INTO- stage (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- pipeline_id,- environment_id,- name- )-VALUES- (- 10009,- 1,- 1624866790,- 1,- 1624866790,- 9005,- 5002,- 'Integration'- );---- Stage for Pipeline 9006 simulating webhook push event-INSERT INTO- stage (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- pipeline_id,- environment_id,- name- )-VALUES- (- 10010,- 1,- 1624868407,- 1,- 1624868407,- 9006,- 5003,- 'Staging'- );---- Stage for Pipeline 9007 simulating webhook push event-INSERT INTO- stage (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- pipeline_id,- environment_id,- name- )-VALUES- (- 10011,- 1,- 1624868680,- 1,- 1624868680,- 9007,- 5004,- 'Prod'- );---- Stage for Pipeline 9008 simulating webhook push event-INSERT INTO- stage (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- pipeline_id,- environment_id,- name- )-VALUES- (- 10012,- 1,- 1624869944,- 1,- 1624869944,- 9008,- 5001,- 'Dev'- );---- Stage for Pipeline 9009 multi-stage create table UI workflow-INSERT INTO- stage (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- pipeline_id,- environment_id,- name- )-VALUES- (- 10013,- 103,- 1624879944,- 103,- 1624879944,- 9009,- 5001,- 'Dev'- );--INSERT INTO- stage (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- pipeline_id,- environment_id,- name- )-VALUES- (- 10014,- 103,- 1624879944,- 103,- 1624879944,- 9009,- 5002,- 'Integration'- );--INSERT INTO- stage (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- pipeline_id,- environment_id,- name- )-VALUES- (- 10015,- 103,- 1624879944,- 103,- 1624879944,- 9009,- 5003,- 'Staging'- );--INSERT INTO- stage (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- pipeline_id,- environment_id,- name- )-VALUES- (- 10016,- 103,- 1624879944,- 103,- 1624879944,- 9009,- 5004,- 'Prod'- );--ALTER SEQUENCE stage_id_seq RESTART WITH 10017;diff --git a/backend/migrator/demo/default/10110##task.sql b/backend/migrator/demo/default/10110##task.sqldeleted file mode 100644index 1e3822bb9b..0000000000--- a/backend/migrator/demo/default/10110##task.sql+++ /dev/null@@ -1,521 +0,0 @@--- Task for Pipeline 9001 "Hello world", Stage 10001 "Prod" to update database 7014 "testdb_prod"-INSERT INTO- task (- id,- creator_id,- updater_id,- pipeline_id,- stage_id,- instance_id,- database_id,- name,- type,- status,- payload- )-VALUES- (- 11001,- 101,- 101,- 9001,- 10001,- 6004,- 7014,- 'Welcome',- 'bb.task.database.schema.update',- 'PENDING_APPROVAL',- '{"migrationType":"MIGRATE","statement":"CREATE TABLE t1 (name TEXT, age INT);"}'- );---- Task for Pipeline 9002--- Task for stage 10002 "Dev" to update database 7003 'shop'-INSERT INTO- task (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- pipeline_id,- stage_id,- instance_id,- database_id,- name,- type,- status,- payload- )-VALUES- (- 11002,- 1,- 1624873710,- 1,- 1624873710,- 9002,- 10002,- 6001,- 7003,- 'Add initial schema',- 'bb.task.database.schema.update',- 'DONE',- '{"migrationType":"BASELINE","statement":"CREATE TABLE product (\n\tid INTEGER PRIMARY KEY AUTO_INCREMENT,\n\tname TEXT NOT NULL,\n\tdescription TEXT NOT NULL\n);\n","pushEvent":{"vcsType":"GITLAB","baseDir":"bytebase","ref":"refs/heads/master","repositoryId":"14","repositoryUrl":"http://gitlab.bytebase.com/bytebase-demo/shop","repositoryFullPath":"bytebase-demo/shop","authorName":"tianzhou","fileCommit":{"id":"c80352facbaefcde0c1c82340381be3286e5438d","title":"Create product table","message":"Create product table","createdTs":1624873354,"url":"http://gitlab.bytebase.com/bytebase-demo/shop/-/commit/c80352facbaefcde0c1c82340381be3286e5438d","authorName":"tianzhou","added":"bytebase/shop##v1##baseline##add_initial_schema.sql"}}}'- );---- Task for stage 10003 "Integration" to update database 7007 'shop'-INSERT INTO- task (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- pipeline_id,- stage_id,- instance_id,- database_id,- name,- type,- status,- payload- )-VALUES- (- 11003,- 1,- 1624873710,- 1,- 1624873710,- 9002,- 10003,- 6001,- 7007,- 'Add initial schema',- 'bb.task.database.schema.update',- 'DONE',- '{"migrationType":"BASELINE","statement":"CREATE TABLE product (\n\tid INTEGER PRIMARY KEY AUTO_INCREMENT,\n\tname TEXT NOT NULL,\n\tdescription TEXT NOT NULL\n);\n","pushEvent":{"vcsType":"GITLAB","baseDir":"bytebase","ref":"refs/heads/master","repositoryId":"14","repositoryUrl":"http://gitlab.bytebase.com/bytebase-demo/shop","repositoryFullPath":"bytebase-demo/shop","authorName":"tianzhou","fileCommit":{"id":"c80352facbaefcde0c1c82340381be3286e5438d","title":"Create product table","message":"Create product table","createdTs":1624873354,"url":"http://gitlab.bytebase.com/bytebase-demo/shop/-/commit/c80352facbaefcde0c1c82340381be3286e5438d","authorName":"tianzhou","added":"bytebase/shop##v1##baseline##add_initial_schema.sql"}}}'- );---- Task for stage 10004 "Staging" to update database 7011 'shop'-INSERT INTO- task (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- pipeline_id,- stage_id,- instance_id,- database_id,- name,- type,- status,- payload- )-VALUES- (- 11004,- 1,- 1624873710,- 1,- 1624873710,- 9002,- 10004,- 6003,- 7011,- 'Add initial schema',- 'bb.task.database.schema.update',- 'PENDING_APPROVAL',- '{"migrationType":"BASELINE","statement":"CREATE TABLE product (\n\tid INTEGER PRIMARY KEY AUTO_INCREMENT,\n\tname TEXT NOT NULL,\n\tdescription TEXT NOT NULL\n);\n","pushEvent":{"vcsType":"GITLAB","baseDir":"bytebase","ref":"refs/heads/master","repositoryId":"14","repositoryUrl":"http://gitlab.bytebase.com/bytebase-demo/shop","repositoryFullPath":"bytebase-demo/shop","authorName":"tianzhou","fileCommit":{"id":"c80352facbaefcde0c1c82340381be3286e5438d","title":"Create product table","message":"Create product table","createdTs":1624873354,"url":"http://gitlab.bytebase.com/bytebase-demo/shop/-/commit/c80352facbaefcde0c1c82340381be3286e5438d","authorName":"tianzhou","added":"bytebase/shop##v1##baseline##add_initial_schema.sql"}}}'- );---- Task for stage 10005 "Prod" to update database 7015 'proddb1'-INSERT INTO- task (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- pipeline_id,- stage_id,- instance_id,- database_id,- name,- type,- status,- payload- )-VALUES- (- 11005,- 1,- 1624873710,- 1,- 1624873710,- 9002,- 10005,- 6004,- 7015,- 'Add initial schema',- 'bb.task.database.schema.update',- 'PENDING_APPROVAL',- '{"migrationType":"BASELINE","statement":"CREATE TABLE product (\n\tid INTEGER PRIMARY KEY AUTO_INCREMENT,\n\tname TEXT NOT NULL,\n\tdescription TEXT NOT NULL\n);\n","pushEvent":{"vcsType":"GITLAB","baseDir":"bytebase","ref":"refs/heads/master","repositoryId":"14","repositoryUrl":"http://gitlab.bytebase.com/bytebase-demo/shop","repositoryFullPath":"bytebase-demo/shop","authorName":"tianzhou","fileCommit":{"id":"c80352facbaefcde0c1c82340381be3286e5438d","title":"Create product table","message":"Create product table","createdTs":1624873354,"url":"http://gitlab.bytebase.com/bytebase-demo/shop/-/commit/c80352facbaefcde0c1c82340381be3286e5438d","authorName":"tianzhou","added":"bytebase/shop##v1##baseline##add_initial_schema.sql"}}}'- );---- Task for Pipeline 9003 create table--- Task for stage 10006 "Dev" to craete table in database 7002 'testdb_dev'-INSERT INTO- task (- id,- creator_id,- updater_id,- pipeline_id,- stage_id,- instance_id,- database_id,- name,- type,- status,- payload- )-VALUES- (- 11006,- 103,- 103,- 9003,- 10006,- 6001,- 7002,- 'Update testdb_dev',- 'bb.task.database.schema.update',- 'FAILED',- '{"migrationType":"MIGRATE","statement":"CREATE TABLE testdb_dev.tbl1 (name TEXT);"}'- );---- Task for stage 10003 "Integration" to update database 7006 'testdb_integration'-INSERT INTO- task (- id,- creator_id,- updater_id,- pipeline_id,- stage_id,- instance_id,- database_id,- name,- type,- status,- payload- )-VALUES- (- 11007,- 103,- 103,- 9003,- 10007,- 6001,- 7006,- 'Update testdb_integration',- 'bb.task.database.schema.update',- 'PENDING',- '{"migrationType":"MIGRATE","statement":"CREATE TABLE testdb_integration.tbl1 (name TEXT);"}'- );---- Task for stage 10008 simulating webhook push event-INSERT INTO- task (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- pipeline_id,- stage_id,- instance_id,- database_id,- name,- type,- status,- payload- )-VALUES- (- 11008,- 1,- 1624865387,- 1,- 1624865387,- 9004,- 10008,- 6001,- 7004,- 'Add initial schema',- 'bb.task.database.schema.update',- 'DONE',- '{"migrationType":"BASELINE","statement":"CREATE TABLE `user` (\n\tid INTEGER PRIMARY KEY AUTO_INCREMENT,\n\tname TEXT NOT NULL,\n\temail TEXT NOT NULL\n);\n\nCREATE TABLE post (\n\tid INTEGER PRIMARY KEY AUTO_INCREMENT,\n\tname TEXT NOT NULL,\n\tcontent TEXT NOT NULL,\n\tauthor_id INTEGER NOT NULL,\n\tFOREIGN KEY (author_id) REFERENCES `user` (id) ON DELETE RESTRICT\n);\n\nCREATE TABLE comment (\n\tid INTEGER PRIMARY KEY AUTO_INCREMENT,\n\tcontent TEXT NOT NULL,\n\tpost_id INTEGER NOT NULL,\n\tauthor_id INTEGER NOT NULL,\n\tFOREIGN KEY (post_id) REFERENCES post (id) ON DELETE CASCADE,\n\tFOREIGN KEY (author_id) REFERENCES `user` (id) ON DELETE RESTRICT\n);\n","pushEvent":{"vcsType":"GITLAB","baseDir":"bytebase","ref":"refs/heads/master","repositoryId":"13","repositoryUrl":"http://gitlab.bytebase.com/bytebase-demo/blog","repositoryFullPath":"bytebase-demo/blog","authorName":"tianzhou","fileCommit":{"id":"8f578d53e821c46421d69fd0aabd29921190a6c0","title":"Create user, post, comment table for dev environment","message":"Create user, post, comment table for dev environment","createdTs":1624865383,"url":"http://gitlab.bytebase.com/bytebase-demo/blog/-/commit/8f578d53e821c46421d69fd0aabd29921190a6c0","authorName":"tianzhou","added":"bytebase/dev/blog##202106280000##baseline##add_initial_schema.sql"}}}'- );---- Task for stage 10009 simulating webhook push event-INSERT INTO- task (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- pipeline_id,- stage_id,- instance_id,- database_id,- name,- type,- status,- payload- )-VALUES- (- 11009,- 1,- 1624866790,- 1,- 1624866790,- 9005,- 10009,- 6002,- 7008,- 'Add initial schema',- 'bb.task.database.schema.update',- 'DONE',- '{"migrationType":"BASELINE","statement":"CREATE TABLE `user` (\n\tid INTEGER PRIMARY KEY AUTO_INCREMENT,\n\tname TEXT NOT NULL,\n\temail TEXT NOT NULL\n);\n\nCREATE TABLE post (\n\tid INTEGER PRIMARY KEY AUTO_INCREMENT,\n\tname TEXT NOT NULL,\n\tcontent TEXT NOT NULL,\n\tauthor_id INTEGER NOT NULL,\n\tFOREIGN KEY (author_id) REFERENCES `user` (id) ON DELETE RESTRICT\n);\n\nCREATE TABLE comment (\n\tid INTEGER PRIMARY KEY AUTO_INCREMENT,\n\tcontent TEXT NOT NULL,\n\tpost_id INTEGER NOT NULL,\n\tauthor_id INTEGER NOT NULL,\n\tFOREIGN KEY (post_id) REFERENCES post (id) ON DELETE CASCADE,\n\tFOREIGN KEY (author_id) REFERENCES `user` (id) ON DELETE RESTRICT\n);\n","pushEvent":{"vcsType":"GITLAB","baseDir":"bytebase","ref":"refs/heads/master","repositoryId":"13","repositoryUrl":"http://gitlab.bytebase.com/bytebase-demo/blog","repositoryFullPath":"bytebase-demo/blog","authorName":"tianzhou","fileCommit":{"id":"0765950c28c50dd07217aa0a133e8239e64f0ea1","title":"Create user, post, comment table for integration environment","message":"Create user, post, comment table for integration environment","createdTs":1624866787,"url":"http://gitlab.bytebase.com/bytebase-demo/blog/-/commit/0765950c28c50dd07217aa0a133e8239e64f0ea1","authorName":"tianzhou","added":"bytebase/integration/blog##202106280000##baseline##add_initial_schema.sql"}}}'- );---- Task for stage 10010 simulating webhook push event-INSERT INTO- task (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- pipeline_id,- stage_id,- instance_id,- database_id,- name,- type,- status,- payload- )-VALUES- (- 11010,- 1,- 1624868407,- 1,- 1624868407,- 9006,- 10010,- 6003,- 7012,- 'Add initial schema',- 'bb.task.database.schema.update',- 'DONE',- '{"migrationType":"BASELINE","statement":"CREATE TABLE `user` (\n\tid INTEGER PRIMARY KEY AUTO_INCREMENT,\n\tname TEXT NOT NULL,\n\temail TEXT NOT NULL\n);\n\nCREATE TABLE post (\n\tid INTEGER PRIMARY KEY AUTO_INCREMENT,\n\tname TEXT NOT NULL,\n\tcontent TEXT NOT NULL,\n\tauthor_id INTEGER NOT NULL,\n\tFOREIGN KEY (author_id) REFERENCES `user` (id) ON DELETE RESTRICT\n);\n\nCREATE TABLE comment (\n\tid INTEGER PRIMARY KEY AUTO_INCREMENT,\n\tcontent TEXT NOT NULL,\n\tpost_id INTEGER NOT NULL,\n\tauthor_id INTEGER NOT NULL,\n\tFOREIGN KEY (post_id) REFERENCES post (id) ON DELETE CASCADE,\n\tFOREIGN KEY (author_id) REFERENCES `user` (id) ON DELETE RESTRICT\n);\n","pushEvent":{"vcsType":"GITLAB","baseDir":"bytebase","ref":"refs/heads/master","repositoryId":"13","repositoryUrl":"http://gitlab.bytebase.com/bytebase-demo/blog","repositoryFullPath":"bytebase-demo/blog","authorName":"tianzhou","fileCommit":{"id":"149f18b8d94805be4b92e256ef1dc9f4a27d5157","title":"Create user, post, comment table for staging environment","message":"Create user, post, comment table for staging environment","createdTs":1624868403,"url":"http://gitlab.bytebase.com/bytebase-demo/blog/-/commit/149f18b8d94805be4b92e256ef1dc9f4a27d5157","authorName":"tianzhou","added":"bytebase/bytebase/staging/blog##202106280000##baseline##add_initial_schema.sql"}}}'- );---- Task for stage 10011 simulating webhook push event-INSERT INTO- task (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- pipeline_id,- stage_id,- instance_id,- database_id,- name,- type,- status,- payload- )-VALUES- (- 11011,- 1,- 1624868680,- 1,- 1624868680,- 9007,- 10011,- 6004,- 7016,- 'Add initial schema',- 'bb.task.database.schema.update',- 'DONE',- '{"migrationType":"BASELINE","statement":"CREATE TABLE `user` (\n\tid INTEGER PRIMARY KEY AUTO_INCREMENT,\n\tname TEXT NOT NULL,\n\temail TEXT NOT NULL\n);\n\nCREATE TABLE post (\n\tid INTEGER PRIMARY KEY AUTO_INCREMENT,\n\tname TEXT NOT NULL,\n\tcontent TEXT NOT NULL,\n\tauthor_id INTEGER NOT NULL,\n\tFOREIGN KEY (author_id) REFERENCES `user` (id) ON DELETE RESTRICT\n);\n\nCREATE TABLE comment (\n\tid INTEGER PRIMARY KEY AUTO_INCREMENT,\n\tcontent TEXT NOT NULL,\n\tpost_id INTEGER NOT NULL,\n\tauthor_id INTEGER NOT NULL,\n\tFOREIGN KEY (post_id) REFERENCES post (id) ON DELETE CASCADE,\n\tFOREIGN KEY (author_id) REFERENCES `user` (id) ON DELETE RESTRICT\n);\n","pushEvent":{"vcsType":"GITLAB","baseDir":"bytebase","ref":"refs/heads/master","repositoryId":"13","repositoryUrl":"http://gitlab.bytebase.com/bytebase-demo/blog","repositoryFullPath":"bytebase-demo/blog","authorName":"tianzhou","fileCommit":{"id":"ec17d38d6581015feb49b341cc3da56cb0e354fb","title":"Create user, post, comment table for prod environment","message":"Create user, post, comment table for prod environment","createdTs":1624868676,"url":"http://gitlab.bytebase.com/bytebase-demo/blog/-/commit/ec17d38d6581015feb49b341cc3da56cb0e354fb","authorName":"tianzhou","added":"bytebase/prod/blog##202106280000##baseline##add_initial_schema.sql"}}}'- );---- Task for stage 10012 simulating webhook push event-INSERT INTO- task (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- pipeline_id,- stage_id,- instance_id,- database_id,- name,- type,- status,- payload- )-VALUES- (- 11012,- 1,- 1624869944,- 1,- 1624869944,- 9008,- 10012,- 6001,- 7004,- 'Add created at column',- 'bb.task.database.schema.update',- 'FAILED',- '{"migrationType":"MIGRATE","statement":"ALTER TABLE `user` ADD COLUMN `created_at` DATETIME NOT NULL;\n\nALTER TABLE post ADD COLUMN `created_at` DATETIME NOT NULL;\n\nALTER TABLE comment ADD COLUMN `created_at` DATETIME NOT NULL;\n","pushEvent":{"vcsType":"GITLAB","baseDir":"bytebase","ref":"refs/heads/master","repositoryId":"13","repositoryUrl":"http://gitlab.bytebase.com/bytebase-demo/blog","repositoryFullPath":"bytebase-demo/blog","authorName":"tianzhou","fileCommit":{"id":"8ff6482998059a861e1faa14658c65244577b54e","title":"Add created_at column to user,post,comment table for dev environment","message":"Add created_at column to user,post,comment table for dev environment","createdTs":1624869938,"url":"http://gitlab.bytebase.com/bytebase-demo/blog/-/commit/8ff6482998059a861e1faa14658c65244577b54e","authorName":"tianzhou","added":"bytebase/dev/blog##202106280100##migrate##add_created_at_column.sql"}}}'- );---- Task for Pipeline 9009 multi-stage create table UI workflow--- Task for stage 10013 "Dev" to create table in database 7002 'testdb_dev'-INSERT INTO- task (- id,- creator_id,- updater_id,- pipeline_id,- stage_id,- instance_id,- database_id,- name,- type,- status,- payload- )-VALUES- (- 11013,- 103,- 103,- 9009,- 10013,- 6001,- 7002,- 'Update testdb_dev',- 'bb.task.database.schema.update',- 'DONE',- '{"migrationType":"MIGRATE","statement":"CREATE TABLE testdb_dev.tbl2 (name TEXT);"}'- );---- Task for stage 10014 "Integration" to create table in database 7006 'testdb_integration'-INSERT INTO- task (- id,- creator_id,- updater_id,- pipeline_id,- stage_id,- instance_id,- database_id,- name,- type,- status,- payload- )-VALUES- (- 11014,- 103,- 103,- 9009,- 10014,- 6002,- 7006,- 'Update testdb_integration',- 'bb.task.database.schema.update',- 'DONE',- '{"migrationType":"MIGRATE","statement":"CREATE TABLE testdb_integration.tbl2 (name TEXT);"}'- );----- Task for stage 10015 "Integration" to create table in database 7010 'testdb_staging'-INSERT INTO- task (- id,- creator_id,- updater_id,- pipeline_id,- stage_id,- instance_id,- database_id,- name,- type,- status,- payload- )-VALUES- (- 11015,- 103,- 103,- 9009,- 10015,- 6003,- 7010,- 'Update testdb_staging',- 'bb.task.database.schema.update',- 'FAILED',- '{"migrationType":"MIGRATE","statement":"CREATE TABLE testdb_staging.tbl2 (name TEXT);"}'- );---- Task for stage 10016 "prod" to create table in database 7014 'testdb_prod'-INSERT INTO- task (- id,- creator_id,- updater_id,- pipeline_id,- stage_id,- instance_id,- database_id,- name,- type,- status,- payload- )-VALUES- (- 11016,- 103,- 103,- 9009,- 10016,- 6004,- 7014,- 'Update testdb_prod',- 'bb.task.database.schema.update',- 'PENDING_APPROVAL',- '{"migrationType":"MIGRATE","statement":"CREATE TABLE testdb_prod.tbl2 (name TEXT);"}'- );--ALTER SEQUENCE task_id_seq RESTART WITH 11017;diff --git a/backend/migrator/demo/default/10111##task_dag.sql b/backend/migrator/demo/default/10111##task_dag.sqldeleted file mode 100644index 1bcd701318..0000000000--- a/backend/migrator/demo/default/10111##task_dag.sql+++ /dev/null@@ -1 +0,0 @@-ALTER SEQUENCE task_dag_id_seq RESTART WITH 11101;diff --git a/backend/migrator/demo/default/10120##task_run.sql b/backend/migrator/demo/default/10120##task_run.sqldeleted file mode 100644index 6c8328e5fb..0000000000--- a/backend/migrator/demo/default/10120##task_run.sql+++ /dev/null@@ -1,325 +0,0 @@--- Task run for task 11002-INSERT INTO- task_run (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- task_id,- attempt,- name,- status,- code,- result- )-VALUES- (- 12001,- 1,- 1624873710,- 1,- 1624873710,- 11002,- 0,- 'Add initial schema 1624873710',- 'DONE',- 0,- '{"detail":"Established baseline version 202106280000 for database ''shop''","migrationId":1,"version":"202106280000"}'- );---- Task run for task 11003-INSERT INTO- task_run (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- task_id,- attempt,- name,- status,- code,- result- )-VALUES- (- 12002,- 1,- 1624883710,- 1,- 1624883710,- 11003,- 0,- 'Add initial schema 1624883710',- 'DONE',- 0,- '{"detail":"Established baseline version 202106280000 for database ''shop''","migrationId":1,"version":"202106280000"}'- );---- Failed task run for task 11006 create table-INSERT INTO- task_run (- id,- creator_id,- updater_id,- task_id,- attempt,- name,- status,- code,- result- )-VALUES- (- 12003,- 101,- 101,- 11006,- 0,- 'Update testdb_dev task run',- 'FAILED',- 103,- '{"detail":"table \"tbl1\" already exists"}'- );---- Task run for task 11008-INSERT INTO- task_run (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- task_id,- attempt,- name,- status,- code,- result- )-VALUES- (- 12004,- 1,- 1624865387,- 1,- 1624865387,- 11008,- 0,- 'Add initial schema 1624865387',- 'DONE',- 0,- '{"detail":"Established baseline version 202106280000 for database ''blog''","migrationId":1,"version":"202106280000"}'- );---- Task run for task 11009-INSERT INTO- task_run (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- task_id,- attempt,- name,- status,- code,- result- )-VALUES- (- 12005,- 1,- 1624866790,- 1,- 1624866790,- 11009,- 0,- 'Add initial schema 1624866790',- 'DONE',- 0,- '{"detail":"Established baseline version 202106280000 for database ''blog''","migrationId":1,"version":"202106280000"}'- );---- Task run for task 11010-INSERT INTO- task_run (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- task_id,- attempt,- name,- status,- code,- result- )-VALUES- (- 12006,- 1,- 1624868407,- 1,- 1624868407,- 11010,- 0,- 'Add initial schema 1624868407',- 'DONE',- 0,- '{"detail":"Established baseline version 202106280000 for database ''blog''","migrationId":1,"version":"202106280000"}'- );---- Task run for task 11011-INSERT INTO- task_run (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- task_id,- attempt,- name,- status,- code,- result- )-VALUES- (- 12007,- 1,- 1624868680,- 1,- 1624868680,- 11011,- 0,- 'Add initial schema 1624868680',- 'DONE',- 0,- '{"detail":"Established baseline version 202106280000 for database ''blog''","migrationId":1,"version":"202106280000"}'- );---- Failed task run for task 11012 create table-INSERT INTO- task_run (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- task_id,- attempt,- name,- status,- code,- result- )-VALUES- (- 12008,- 1,- 1624869944,- 1,- 1624869944,- 11012,- 0,- 'Add created at column 1624869944',- 'FAILED',- 201,- '{"detail":"database ''blog'' has already applied version 202106280100"}'- );---- Successful task run for task 11013 create table-INSERT INTO- task_run (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- task_id,- attempt,- name,- status,- code,- result- )-VALUES- (- 12009,- 102,- 1624879944,- 102,- 1624879944,- 11013,- 0,- 'Update testdb_dev task run',- 'DONE',- 0,- '{"detail":"Applied migration version 20210830011437.11013 to database \"testdb_dev\"","migrationId":1,"version":"20210830011437.11013"}'- );---- Successful task run for task 11014 create table-INSERT INTO- task_run (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- task_id,- attempt,- name,- status,- result- )-VALUES- (- 12010,- 102,- 1624879944,- 102,- 1624879944,- 11014,- 0,- 'Update testdb_integration task run',- 'DONE',- '{"detail":"Applied migration version 20210830011437.11014 to database \"testdb_integration\"","migrationId":1,"version":"20210830011437.11014"}'- );---- Failed task run for task 11015 create table-INSERT INTO- task_run (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- task_id,- attempt,- name,- status,- code,- result- )-VALUES- (- 12011,- 102,- 1624879944,- 102,- 1624879944,- 11015,- 0,- 'Update testdb_staging task run',- 'FAILED',- 103,- '{"detail":"table \"tbl2\" already exists"}'- );--ALTER SEQUENCE task_run_id_seq RESTART WITH 12012;diff --git a/backend/migrator/demo/default/10130##issue.sql b/backend/migrator/demo/default/10130##issue.sqldeleted file mode 100644index f8350cb2c9..0000000000--- a/backend/migrator/demo/default/10130##issue.sql+++ /dev/null@@ -1,277 +0,0 @@--- Issue for the single stage, single step "Hello world" pipeline-INSERT INTO- issue (- id,- creator_id,- updater_id,- project_id,- pipeline_id,- name,- status,- type,- description,- assignee_id- )-VALUES- (- 101,- 1,- 1,- 3001,- 9001,- 'Hello world!',- 'OPEN',- 'bb.issue.database.schema.update',- 'Welcome to Bytebase, this is the issue interface where developers and DBAs collaborate on database schema management issues such as: '||chr(10)||chr(10)||' - Creating a new database'||chr(10)||' - Creating a table'||chr(10)||' - Creating an index'||chr(10)||' - Adding/Altering a column'||chr(10)||' - Troubleshooting performance issue'||chr(10)||chr(10)||'Let''s try some simple tasks:'||chr(10)||chr(10)||'1. Bookmark this issue by clicking the star icon on the top of this page.'||chr(10)||'2. Leave a comment below to greet future customers.',- 101- );---- Issue for simulating webhook push event to create table in multi-stage for shop project.-INSERT INTO- issue (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- project_id,- pipeline_id,- name,- status,- type,- description,- assignee_id- )-VALUES- (- 13002,- 103,- 1624873710,- 103,- 1624873710,- 3002,- 9002,- 'Create product table using multi-stage VCS workflow',- 'OPEN',- 'bb.issue.database.schema.update',- 'Create product table using multi-stage VCS workflow',- 101- );---- Issue for the multi stage create table pipeline, first stage has a failed task run-INSERT INTO- issue (- id,- creator_id,- updater_id,- project_id,- pipeline_id,- name,- status,- type,- description,- assignee_id- )-VALUES- (- 13003,- 103,- 103,- 3001,- 9003,- 'Create a new table ''tbl1''',- 'CANCELED',- 'bb.issue.database.schema.update',- 'Create tbl1.',- 102- );---- Issue for simulating webhook push event to create table for blog project dev database.-INSERT INTO- issue (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- project_id,- pipeline_id,- name,- status,- type,- description,- assignee_id- )-VALUES- (- 13004,- 1,- 1624865387,- 1,- 1624865387,- 3003,- 9004,- 'Create user, post, comment table for dev environment',- 'DONE',- 'bb.issue.database.schema.update',- 'Create user, post, comment table for dev environment',- 1- );---- Issue for simulating webhook push event to create table for blog project integration database.-INSERT INTO- issue (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- project_id,- pipeline_id,- name,- status,- type,- description,- assignee_id- )-VALUES- (- 13005,- 1,- 1624866790,- 1,- 1624866790,- 3003,- 9005,- 'Create user, post, comment table for integration environment',- 'DONE',- 'bb.issue.database.schema.update',- 'Create user, post, comment table for integration environment',- 1- );---- Issue for simulating webhook push event to create table for blog project staging database.-INSERT INTO- issue (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- project_id,- pipeline_id,- name,- status,- type,- description,- assignee_id- )-VALUES- (- 13006,- 1,- 1624868407,- 1,- 1624868407,- 3003,- 9006,- 'Create user, post, comment table for staging environment',- 'DONE',- 'bb.issue.database.schema.update',- 'Create user, post, comment table for staging environment',- 1- );---- Issue for simulating webhook push event to create table for blog project prod database.-INSERT INTO- issue (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- project_id,- pipeline_id,- name,- status,- type,- description,- assignee_id- )-VALUES- (- 13007,- 1,- 1624868680,- 1,- 1624868680,- 3003,- 9007,- 'Create user, post, comment table for prod environment',- 'DONE',- 'bb.issue.database.schema.update',- 'Create user, post, comment table for prod environment',- 1- );---- Issue for simulating webhook push event to alter table for blog project dev database.-INSERT INTO- issue (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- project_id,- pipeline_id,- name,- status,- type,- description,- assignee_id- )-VALUES- (- 13008,- 1,- 1624869944,- 1,- 1624869944,- 3003,- 9008,- 'Add created_at column to user,post,comment table for dev environment',- 'OPEN',- 'bb.issue.database.schema.update',- 'Add created_at column to user,post,comment table for dev environment',- 1- );---- Issue for multi-stage create table UI workflow-INSERT INTO- issue (- id,- creator_id,- updater_id,- project_id,- pipeline_id,- name,- status,- type,- description,- assignee_id- )-VALUES- (- 13009,- 103,- 103,- 3001,- 9009,- 'Create a new table ''tbl2'' using multi-stage SQL review workflow',- 'CANCELED',- 'bb.issue.database.schema.update',- 'Create tbl2 using multi-stage SQL review workflow',- 102- );--ALTER SEQUENCE issue_id_seq RESTART WITH 13012;diff --git a/backend/migrator/demo/default/10131##issue_subscriber.sql b/backend/migrator/demo/default/10131##issue_subscriber.sqldeleted file mode 100644index ba0f8bbd16..0000000000--- a/backend/migrator/demo/default/10131##issue_subscriber.sql+++ /dev/null@@ -1,123 +0,0 @@--- Subscriber for issue 101-INSERT INTO- issue_subscriber (issue_id, subscriber_id)-VALUES- (101, 102);--INSERT INTO- issue_subscriber (issue_id, subscriber_id)-VALUES- (101, 103);--INSERT INTO- issue_subscriber (issue_id, subscriber_id)-VALUES- (101, 104);---- Subscriber for issue 13002-INSERT INTO- issue_subscriber (issue_id, subscriber_id)-VALUES- (13002, 101);--INSERT INTO- issue_subscriber (issue_id, subscriber_id)-VALUES- (13002, 102);---- Subscriber for issue 13003-INSERT INTO- issue_subscriber (issue_id, subscriber_id)-VALUES- (13003, 101);--INSERT INTO- issue_subscriber (issue_id, subscriber_id)-VALUES- (13003, 102);--INSERT INTO- issue_subscriber (issue_id, subscriber_id)-VALUES- (13003, 103);--INSERT INTO- issue_subscriber (issue_id, subscriber_id)-VALUES- (13003, 104);---- Subscriber for issue 13004-INSERT INTO- issue_subscriber (issue_id, subscriber_id)-VALUES- (13004, 101);--INSERT INTO- issue_subscriber (issue_id, subscriber_id)-VALUES- (13004, 102);--INSERT INTO- issue_subscriber (issue_id, subscriber_id)-VALUES- (13004, 103);--INSERT INTO- issue_subscriber (issue_id, subscriber_id)-VALUES- (13004, 104);---- Subscriber for issue 13005-INSERT INTO- issue_subscriber (issue_id, subscriber_id)-VALUES- (13005, 101);---- Subscriber for issue 13006-INSERT INTO- issue_subscriber (issue_id, subscriber_id)-VALUES- (13006, 103);--INSERT INTO- issue_subscriber (issue_id, subscriber_id)-VALUES- (13006, 104);---- Subscriber for issue 13007-INSERT INTO- issue_subscriber (issue_id, subscriber_id)-VALUES- (13007, 101);--INSERT INTO- issue_subscriber (issue_id, subscriber_id)-VALUES- (13007, 102);---- Subscriber for issue 13008-INSERT INTO- issue_subscriber (issue_id, subscriber_id)-VALUES- (13008, 101);--INSERT INTO- issue_subscriber (issue_id, subscriber_id)-VALUES- (13007, 103);---- Subscriber for issue 13009-INSERT INTO- issue_subscriber (issue_id, subscriber_id)-VALUES- (13009, 101);--INSERT INTO- issue_subscriber (issue_id, subscriber_id)-VALUES- (13009, 102);--INSERT INTO- issue_subscriber (issue_id, subscriber_id)-VALUES- (13009, 103);diff --git a/backend/migrator/demo/default/10140##activity.sql b/backend/migrator/demo/default/10140##activity.sqldeleted file mode 100644index 15b4583057..0000000000--- a/backend/migrator/demo/default/10140##activity.sql+++ /dev/null@@ -1,1276 +0,0 @@--- Activity for issue 101-INSERT INTO- activity (- id,- creator_id,- updater_id,- container_id,- type,- level,- payload- )-VALUES- (- 14001,- 1,- 1,- 101,- 'bb.issue.create',- 'INFO',- '{"issueName":"Hello world!"}'- );--INSERT INTO- activity (- id,- creator_id,- updater_id,- container_id,- type,- level,- comment,- payload- )-VALUES- (- 14002,- 101,- 101,- 101,- 'bb.issue.comment.create',- 'INFO',- 'Welcome!',- '{"issueName":"Hello world!"}'- );--INSERT INTO- activity (- id,- creator_id,- updater_id,- container_id,- type,- level,- comment,- payload- )-VALUES- (- 14003,- 102,- 102,- 101,- 'bb.issue.comment.create',- 'INFO',- 'Let''s rock!',- '{"issueName":"Hello world!"}'- );--INSERT INTO- activity (- id,- creator_id,- updater_id,- container_id,- type,- level,- comment,- payload- )-VALUES- (- 14004,- 103,- 103,- 101,- 'bb.issue.comment.create',- 'INFO',- 'Go fish!',- '{"issueName":"Hello world!"}'- );---- Activity for issue 13002-INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- payload- )-VALUES- (- 14005,- 1,- 1624873710,- 1,- 1624873710,- 13002,- 'bb.issue.create',- 'INFO',- '{"issueName":"Create product table"}'- );--INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14006,- 1,- 1624873710,- 1,- 1624873710,- 13002,- 'bb.pipeline.task.status.update',- 'INFO',- '',- '{"taskId":11002,"oldStatus":"PENDING","newStatus":"RUNNING","issueName":"Create product table","taskName":"Add initial schema"}'- );--INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14007,- 1,- 1624873710,- 1,- 1624873710,- 13002,- 'bb.pipeline.task.status.update',- 'INFO',- 'Established baseline version 202106280000 for database ''shop''',- '{"taskId":11002,"oldStatus":"RUNNING","newStatus":"DONE"}'- );--INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14008,- 1,- 1624873710,- 1,- 1624873710,- 13002,- 'bb.pipeline.task.status.update',- 'INFO',- '',- '{"taskId":11003,"oldStatus":"PENDING","newStatus":"RUNNING"}'- );--INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14009,- 1,- 1624873710,- 1,- 1624873710,- 13002,- 'bb.pipeline.task.status.update',- 'INFO',- 'Established baseline version 202106280000 for database ''shop''',- '{"taskId":11003,"oldStatus":"RUNNING","newStatus":"DONE"}'- );--INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- payload- )-VALUES- (- 14010,- 1,- 1624873710,- 1,- 1624873710,- 13002,- 'bb.issue.field.update',- 'INFO',- '{"fieldId":"3","oldValue":"1","newValue":"101","issueName":"Create product table"}'- );---- Activity for issue 13003-INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- payload- )-VALUES- (- 14011,- 103,- 1624873710,- 103,- 1624873710,- 13003,- 'bb.issue.create',- 'INFO',- '{"issueName":"CREATE a new TABLE ''tbl1''"}'- );---- Activity for failed task_run 12001-INSERT INTO- activity (- id,- creator_id,- updater_id,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14012,- 1,- 1,- 13003,- 'bb.pipeline.task.status.update',- 'ERROR',- 'table "tbl1" already exists',- '{"taskId":11006,"oldStatus":"RUNNING","newStatus":"FAILED","issueName":"Create a new table ''tbl1''","taskName":"Update testdb_dev"}'- );--INSERT INTO- activity (- id,- creator_id,- updater_id,- container_id,- type,- level,- payload- )-VALUES- (- 14013,- 102,- 102,- 13003,- 'bb.issue.status.update',- 'INFO',- '{"oldStatus":"OPEN","newStatus":"CANCELED","issueName":"Create a new table ''tbl1''"}'- );---- Activity for issue 13004-INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14014,- 1,- 1624865387,- 1,- 1624865387,- 13004,- 'bb.issue.create',- 'INFO',- '',- '{"issueName":"Create user, post, comment table for dev environment"}'- );--INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14015,- 1,- 1624865388,- 1,- 1624865388,- 13004,- 'bb.pipeline.task.status.update',- 'INFO',- '',- '{"taskId":11008,"oldStatus":"PENDING","newStatus":"RUNNING"}'- );--INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14016,- 1,- 1624865388,- 1,- 1624865388,- 13004,- 'bb.pipeline.task.status.update',- 'INFO',- 'Established baseline version 202106280000 for database ''blog''',- '{"taskId":11008,"oldStatus":"RUNNING","newStatus":"DONE"}'- );--INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14017,- 1,- 1624865388,- 1,- 1624865388,- 13004,- 'bb.issue.status.update',- 'INFO',- '',- '{"oldStatus":"RUNNING","newStatus":"DONE","issueName":"Create user, post, comment table for dev environment"}'- );---- Activity for issue 13005-INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14018,- 1,- 1624866790,- 1,- 1624866790,- 13005,- 'bb.issue.create',- 'INFO',- '',- '{"issueName":"Create user, post, comment table for integration environment"}'- );--INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14019,- 1,- 1624866791,- 1,- 1624866791,- 13005,- 'bb.pipeline.task.status.update',- 'INFO',- '',- '{"taskId":11009,"oldStatus":"PENDING","newStatus":"RUNNING"}'- );--INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14020,- 1,- 1624866791,- 1,- 1624866791,- 13005,- 'bb.pipeline.task.status.update',- 'INFO',- 'Established baseline version 202106280000 for database ''blog''',- '{"taskId":11009,"oldStatus":"RUNNING","newStatus":"DONE"}'- );--INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14021,- 1,- 1624866791,- 1,- 1624866791,- 13005,- 'bb.issue.status.update',- 'INFO',- '',- '{"oldStatus":"RUNNING","newStatus":"DONE","issueName":"Create user, post, comment table for integration environment"}'- );---- Activity for issue 13006-INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14022,- 1,- 1624868407,- 1,- 1624868407,- 13006,- 'bb.issue.create',- 'INFO',- '',- '{"issueName":"Create user, post, comment table for staging environment"}'- );--INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14023,- 1,- 1624868408,- 1,- 1624868408,- 13006,- 'bb.pipeline.task.status.update',- 'INFO',- '',- '{"taskId":11010,"oldStatus":"PENDING","newStatus":"RUNNING"}'- );--INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14024,- 1,- 1624868408,- 1,- 1624868408,- 13006,- 'bb.pipeline.task.status.update',- 'INFO',- 'Established baseline version 202106280000 for database ''blog''',- '{"taskId":11010,"oldStatus":"RUNNING","newStatus":"DONE"}'- );--INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14025,- 1,- 1624868408,- 1,- 1624868408,- 13006,- 'bb.issue.status.update',- 'INFO',- '',- '{"oldStatus":"RUNNING","newStatus":"DONE","issueName":"Create user, post, comment table for staging environment"}'- );---- Activity for issue 13007-INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14026,- 1,- 1624868680,- 1,- 1624868680,- 13007,- 'bb.issue.create',- 'INFO',- '',- '{"issueName":"Create user, post, comment table for prod environment"}'- );--INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14027,- 1,- 1624868681,- 1,- 1624868681,- 13007,- 'bb.pipeline.task.status.update',- 'INFO',- '',- '{"taskId":11011,"oldStatus":"PENDING","newStatus":"RUNNING"}'- );--INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14028,- 1,- 1624868681,- 1,- 1624868681,- 13007,- 'bb.pipeline.task.status.update',- 'INFO',- 'Established baseline version 202106280000 for database ''blog''',- '{"taskId":11011,"oldStatus":"RUNNING","newStatus":"DONE"}'- );--INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14029,- 1,- 1624868681,- 1,- 1624868681,- 13007,- 'bb.issue.status.update',- 'INFO',- '',- '{"oldStatus":"RUNNING","newStatus":"DONE","issueName":"Create user, post, comment table for prod environment"}'- );---- Activity for issue 13008-INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14030,- 1,- 1624869944,- 1,- 1624869944,- 13008,- 'bb.issue.create',- 'INFO',- '',- '{"issueName":"Add created_at column to user,post,comment table for dev environment"}'- );--INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14031,- 1,- 1624869945,- 1,- 1624869945,- 13008,- 'bb.pipeline.task.status.update',- 'INFO',- '',- '{"taskId":11012,"oldStatus":"PENDING","newStatus":"RUNNING"}'- );--INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14032,- 1,- 1624869945,- 1,- 1624869945,- 13008,- 'bb.pipeline.task.status.update',- 'ERROR',- 'database ''blog'' has already applied version 202106280100',- '{"taskId":11012,"oldStatus":"RUNNING","newStatus":"FAILED"}'- );---- Activity for issue 13009-INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14033,- 103,- 1624879944,- 103,- 1624879944,- 13009,- 'bb.issue.create',- 'INFO',- '',- '{"issueName":"Create a new table ''tbl2'' using multi-stage SQL review workflow"}'- );--INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14034,- 102,- 1624879944,- 102,- 1624879944,- 13009,- 'bb.pipeline.task.status.update',- 'INFO',- '',- '{"taskId":11015,"oldStatus":"PENDING","newStatus":"RUNNING","issueName":"Create a new table ''tbl2'' using multi-stage SQL review workflow","taskName":"Update testdb_dev"}'- );--INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14035,- 102,- 1624879944,- 102,- 1624879944,- 13009,- 'bb.pipeline.task.status.update',- 'INFO',- 'Applied migration version 20210830011437.11013 to database "testdb_dev"',- '{"taskId":11013,"oldStatus":"RUNNING","newStatus":"DONE","issueName":"Create a new table ''tbl2'' using multi-stage SQL review workflow","taskName":"Update testdb_dev"}'- );--INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14036,- 102,- 1624879944,- 102,- 1624879944,- 13009,- 'bb.pipeline.task.status.update',- 'INFO',- '',- '{"taskId":11014,"oldStatus":"PENDING","newStatus":"RUNNING","issueName":"Create a new table ''tbl2'' using multi-stage SQL review workflow","taskName":"Update testdb_integration"}'- );--INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14037,- 102,- 1624879944,- 102,- 1624879944,- 13009,- 'bb.pipeline.task.status.update',- 'INFO',- 'Applied migration version 20210830011437.11014 to database "testdb_integration"',- '{"taskId":11014,"oldStatus":"RUNNING","newStatus":"DONE","issueName":"Create a new table ''tbl2'' using multi-stage SQL review workflow","taskName":"Update testdb_integration"}'- );--INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14038,- 102,- 1624879944,- 102,- 1624879944,- 13009,- 'bb.pipeline.task.status.update',- 'INFO',- '',- '{"taskId":11015,"oldStatus":"PENDING","newStatus":"RUNNING","issueName":"Create a new table ''tbl2'' using multi-stage SQL review workflow","taskName":"Update testdb_staging"}'- );--INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14039,- 102,- 1624879944,- 102,- 1624879944,- 13009,- 'bb.pipeline.task.status.update',- 'ERROR',- 'table "tbl2" already exists',- '{"taskId":11015,"oldStatus":"RUNNING","newStatus":"FAILED","issueName":"Create a new table ''tbl2'' using multi-stage SQL review workflow","taskName":"Update testdb_staging"}'- );---- Project activity for 3001-INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14040,- 102,- 1624879944,- 102,- 1624879944,- 3001,- 'bb.project.member.role.update',- 'INFO',- 'Changed Demo Owner ([email protected]) from OWNER to DEVELOPER.',- '{}'- );---- Project activity for 3002-INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14041,- 101,- 1624879944,- 101,- 1624879944,- 3002,- 'bb.project.member.create',- 'INFO',- 'Granted Jerry DBA to [email protected] (DEVELOPER).',- '{}'- );--INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14042,- 1,- 1624879944,- 1,- 1624879944,- 3002,- 'bb.project.repository.push',- 'INFO',- 'Created issue "Create product table using multi-stage VCS workflow".',- '{"pushEvent":{"vcsType":"GITLAB","baseDir":"bytebase","ref":"refs/heads/master","repositoryId":"14","repositoryUrl":"http://gitlab.bytebase.com/bytebase-demo/shop","repositoryFullPath":"bytebase-demo/shop","authorName":"tianzhou","fileCommit":{"id":"c80352facbaefcde0c1c82340381be3286e5438d","title":"Create product table","message":"Create product table","createdTs": 1630940811,"url":"https://gitlab.bytebase.com/bytebase-demo/shop/-/commit/c80352facbaefcde0c1c82340381be3286e5438d","authorName":"tianzhou","added":"bytebase/shop##v1##baseline##add_initial_schema.sql"}},"issueId":13002,"issueName":"Create product table using multi-stage VCS workflow"}'- );---- Project activity for 3003-INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14043,- 101,- 1624879944,- 101,- 1624879944,- 3003,- 'bb.project.member.create',- 'INFO',- 'Granted Tom Dev to [email protected] (DEVELOPER).',- '{}'- );--INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14044,- 1,- 1624879944,- 1,- 1624879944,- 3003,- 'bb.project.repository.push',- 'INFO',- 'Created issue "Add created_at column to user,post,comment table for dev environment".',- '{"pushEvent":{"vcsType":"GITLAB","baseDir":"bytebase","ref":"refs/heads/master","repositoryId":"13","repositoryUrl":"http://gitlab.bytebase.com/bytebase-demo/blog","repositoryFullPath":"bytebase-demo/blog","authorName":"tianzhou","fileCommit":{"id":"8ff6482998059a861e1faa14658c65244577b54e","title":"Add created_at column to user,post,comment table for dev environment","message":"Add created_at column to user,post,comment table for dev environment","createdTs":1630943211,"url":"https://gitlab.bytebase.com/bytebase-demo/blog/-/commit/8ff6482998059a861e1faa14658c65244577b54e","authorName":"tianzhou","added":"bytebase/dev/blog##202106280100##migrate##add_created_at_column.sql"}},"issueId":13008,"issueName":"Add created_at column to user,post,comment table for dev environment"}'- );--INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14045,- 1,- 1624879944,- 1,- 1624879944,- 3003,- 'bb.project.repository.push',- 'INFO',- 'Created issue "Create user, post, comment table for dev environment".',- '{"pushEvent":{"vcsType":"GITLAB","baseDir":"bytebase","ref":"refs/heads/master","repositoryId":"13","repositoryUrl":"http://gitlab.bytebase.com/bytebase-demo/blog","repositoryFullPath":"bytebase-demo/blog","authorName":"tianzhou","fileCommit":{"id":"8f578d53e821c46421d69fd0aabd29921190a6c0","title":"Create user, post, comment table for dev environment","message":"Create user, post, comment table for dev environment","createdTs": 1630941711,"url":"https://gitlab.bytebase.com/bytebase-demo/blog/-/commit/8f578d53e821c46421d69fd0aabd29921190a6c0","authorName":"tianzhou","added":"bytebase/dev/blog##202106280000##baseline##add_initial_schema.sql"}},"issueId":13004,"issueName":"Create user, post, comment table for dev environment"}'- );--INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14046,- 1,- 1624879944,- 1,- 1624879944,- 3003,- 'bb.project.repository.push',- 'INFO',- 'Created issue "Create user, post, comment table for integration environment".',- '{"pushEvent":{"vcsType":"GITLAB","baseDir":"bytebase","ref":"refs/heads/master","repositoryId":"13","repositoryUrl":"http://gitlab.bytebase.com/bytebase-demo/blog","repositoryFullPath":"bytebase-demo/blog","authorName":"tianzhou","fileCommit":{"id":"0765950c28c50dd07217aa0a133e8239e64f0ea1","title":"Create user, post, comment table for integration environment","message":"Create user, post, comment table for integration environment","createdTs": 1630941711,"url":"https://gitlab.bytebase.com/bytebase-demo/blog/-/commit/0765950c28c50dd07217aa0a133e8239e64f0ea1","authorName":"tianzhou","added":"bytebase/integration/blog##202106280000##baseline##add_initial_schema.sql"}},"issueId":13005,"issueName":"Create user, post, comment table for integration environment"}'- );--INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14047,- 1,- 1624879944,- 1,- 1624879944,- 3003,- 'bb.project.repository.push',- 'INFO',- 'Created issue "Create user, post, comment table for staging environment".',- '{"pushEvent":{"vcsType":"GITLAB","baseDir":"bytebase","ref":"refs/heads/master","repositoryId":"13","repositoryUrl":"http://gitlab.bytebase.com/bytebase-demo/blog","repositoryFullPath":"bytebase-demo/blog","authorName":"tianzhou","fileCommit":{"id":"149f18b8d94805be4b92e256ef1dc9f4a27d5157","title":"Create user, post, comment table for staging environment","message":"Create user, post, comment table for staging environment","createdTs": 1630941711,"url":"https://gitlab.bytebase.com/bytebase-demo/blog/-/commit/149f18b8d94805be4b92e256ef1dc9f4a27d5157","authorName":"tianzhou","added":"bytebase/staging/blog##202106280000##baseline##add_initial_schema.sql"}},"issueId":13006,"issueName":"Create user, post, comment table for staging environment"}'- );--INSERT INTO- activity (- id,- creator_id,- created_ts,- updater_id,- updated_ts,- container_id,- type,- level,- COMMENT,- payload- )-VALUES- (- 14048,- 1,- 1624879944,- 1,- 1624879944,- 3003,- 'bb.project.repository.push',- 'INFO',- 'Created issue "Create user, post, comment table for prod environment".',- '{"pushEvent":{"vcsType":"GITLAB","baseDir":"bytebase","ref":"refs/heads/master","repositoryId":"13","repositoryUrl":"http://gitlab.bytebase.com/bytebase-demo/blog","repositoryFullPath":"bytebase-demo/blog","authorName":"tianzhou","fileCommit":{"id":"ec17d38d6581015feb49b341cc3da56cb0e354fb","title":"Create user, post, comment table for prod environment","message":"Create user, post, comment table for prod environment","createdTs": 1630941711,"url":"https://gitlab.bytebase.com/bytebase-demo/blog/-/commit/ec17d38d6581015feb49b341cc3da56cb0e354fb","authorName":"tianzhou","added":"bytebase/prod/blog##202106280000##baseline##add_initial_schema.sql"}},"issueId":13006,"issueName":"Create user, post, comment table for prod environment"}'- );--ALTER SEQUENCE activity_id_seq RESTART WITH 14049;diff --git a/backend/migrator/demo/default/10150##inbox.sql b/backend/migrator/demo/default/10150##inbox.sqldeleted file mode 100644index 3b10323ccc..0000000000--- a/backend/migrator/demo/default/10150##inbox.sql+++ /dev/null@@ -1,289 +0,0 @@--- Inbox for receiver 101-INSERT INTO- inbox (- id,- receiver_id,- activity_id,- status- )-VALUES- (- 15001,- 101,- 14001,- 'READ'- );--INSERT INTO- inbox (- id,- receiver_id,- activity_id,- status- )-VALUES- (- 15002,- 101,- 14003,- 'UNREAD'- );--INSERT INTO- inbox (- id,- receiver_id,- activity_id,- status- )-VALUES- (- 15003,- 101,- 14004,- 'UNREAD'- );--INSERT INTO- inbox (- id,- receiver_id,- activity_id,- status- )-VALUES- (- 15004,- 101,- 14005,- 'UNREAD'- );--INSERT INTO- inbox (- id,- receiver_id,- activity_id,- status- )-VALUES- (- 15005,- 101,- 14010,- 'UNREAD'- );--INSERT INTO- inbox (- id,- receiver_id,- activity_id,- status- )-VALUES- (- 15006,- 101,- 14012,- 'UNREAD'- );--INSERT INTO- inbox (- id,- receiver_id,- activity_id,- status- )-VALUES- (- 15007,- 101,- 14013,- 'UNREAD'- );---- Inbox for receiver 102-INSERT INTO- inbox (- id,- receiver_id,- activity_id,- status- )-VALUES- (- 15008,- 102,- 14001,- 'READ'- );--INSERT INTO- inbox (- id,- receiver_id,- activity_id,- status- )-VALUES- (- 15009,- 102,- 14002,- 'READ'- );--INSERT INTO- inbox (- id,- receiver_id,- activity_id,- status- )-VALUES- (- 15010,- 102,- 14004,- 'READ'- );--INSERT INTO- inbox (- id,- receiver_id,- activity_id,- status- )-VALUES- (- 15011,- 102,- 14005,- 'UNREAD'- );--INSERT INTO- inbox (- id,- receiver_id,- activity_id,- status- )-VALUES- (- 15012,- 102,- 14006,- 'UNREAD'- );--INSERT INTO- inbox (- id,- receiver_id,- activity_id,- status- )-VALUES- (- 15013,- 102,- 14013,- 'UNREAD'- );---- Inbox for receiver 103-INSERT INTO- inbox (- id,- receiver_id,- activity_id,- status- )-VALUES- (- 15014,- 103,- 14001,- 'READ'- );--INSERT INTO- inbox (- id,- receiver_id,- activity_id,- status- )-VALUES- (- 15015,- 103,- 14002,- 'READ'- );--INSERT INTO- inbox (- id,- receiver_id,- activity_id,- status- )-VALUES- (- 15016,- 103,- 14003,- 'READ'- );--INSERT INTO- inbox (- id,- receiver_id,- activity_id,- status- )-VALUES- (- 15017,- 103,- 14005,- 'READ'- );--INSERT INTO- inbox (- id,- receiver_id,- activity_id,- status- )-VALUES- (- 15018,- 103,- 14006,- 'UNREAD'- );--INSERT INTO- inbox (- id,- receiver_id,- activity_id,- status- )-VALUES- (- 15019,- 103,- 14013,- 'UNREAD'- );--ALTER SEQUENCE inbox_id_seq RESTART WITH 15020;diff --git a/backend/migrator/demo/default/10160##bookmark.sql b/backend/migrator/demo/default/10160##bookmark.sqldeleted file mode 100644index 9024a2a879..0000000000--- a/backend/migrator/demo/default/10160##bookmark.sql+++ /dev/null@@ -1,19 +0,0 @@--- Bookmark for issue 101 "Hello world"-INSERT INTO- bookmark (- id,- creator_id,- updater_id,- name,- link- )-VALUES- (- 16001,- 101,- 101,- 'Hello world!',- '/issue/hello-world-101'- );--ALTER SEQUENCE bookmark_id_seq RESTART WITH 16002;diff --git a/backend/migrator/demo/default/10170##vcs.sql b/backend/migrator/demo/default/10170##vcs.sqldeleted file mode 100644index 393f2a6f62..0000000000--- a/backend/migrator/demo/default/10170##vcs.sql+++ /dev/null@@ -1,27 +0,0 @@--- This is for demo purpose and the applciation_id has alraedy been deleted-INSERT INTO- vcs (- id,- creator_id,- updater_id,- name,- type,- instance_url,- api_url,- application_id,- secret- )-VALUES- (- 17001,- 101,- 101,- 'bytebase.gitlab.com',- 'GITLAB',- 'https://gitlab.bytebase.com',- 'https://gitlab.bytebase.com/api/v4',- 'fda62e44b5388b1ca6e72d5a7028a3c2c47157fc13fd98328e2bd446fae98fd8',- '4ac5cf6f2e400398e34f753a5222432838e84349e8d5120c4adaa6a65278b765'- );--ALTER SEQUENCE vcs_id_seq RESTART WITH 17002;diff --git a/backend/migrator/demo/default/10180##repository.sql b/backend/migrator/demo/default/10180##repository.sqldeleted file mode 100644index 4c2e167f85..0000000000--- a/backend/migrator/demo/default/10180##repository.sql+++ /dev/null@@ -1,104 +0,0 @@--- This is for demo purpose and the webhook has already been deleted-INSERT INTO- repository (- id,- creator_id,- updater_id,- vcs_id,- project_id,- name,- full_path,- web_url,- branch_filter,- base_directory,- file_path_template,- schema_path_template,- sheet_path_template,- external_id,- external_webhook_id,- webhook_url_host,- webhook_endpoint_id,- webhook_secret_token,- access_token,- expires_ts,- refresh_token- )-VALUES- (- 18001,- 101,- 101,- 17001,- 3003,- 'Blog',- 'bytebase-demo/blog',- 'http://gitlab.bytebase.com/bytebase-demo/blog',- 'master',- 'bytebase',- '{{ENV_ID}}/{{DB_NAME}}##{{VERSION}}##{{TYPE}}##{{DESCRIPTION}}.sql',- '{{ENV_ID}}/.{{DB_NAME}}##LATEST.sql',- 'script/{{NAME}}.sql',- -- Refers to the bytebase-demo/blog- '13',- -- Refers to the webhook in bytebase-demo/blog- '60',- 'https://demo.bytebase.com',- 'e99bf622-7f58-4d6b-a5be-b97af313d7ea',- 'xxxxxxxxxxxxxxxx',- 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',- 0,- 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'- );--INSERT INTO- repository (- id,- creator_id,- updater_id,- vcs_id,- project_id,- name,- full_path,- web_url,- branch_filter,- base_directory,- file_path_template,- schema_path_template,- sheet_path_template,- external_id,- external_webhook_id,- webhook_url_host,- webhook_endpoint_id,- webhook_secret_token,- access_token,- expires_ts,- refresh_token- )-VALUES- (- 18002,- 101,- 101,- 17001,- 3002,- 'Shop',- 'bytebase-demo/shop',- 'http://gitlab.bytebase.com/bytebase-demo/shop',- 'master',- 'bytebase',- '{{ENV_ID}}/{{DB_NAME}}##{{VERSION}}##{{TYPE}}##{{DESCRIPTION}}.sql',- '{{ENV_ID}}/.{{DB_NAME}}##LATEST.sql',- 'script/{{ENV_ID}}##{{DB_NAME}}##{{NAME}}.sql',- -- Refers to the bytebase-demo/shop- '14',- -- Refers to the webhook in bytebase-demo/shop- '61',- 'https://demo.bytebase.com',- 'c5e30130-7322-4f84-953a-d08168c047d1',- 'xxxxxxxxxxxxxxxx',- 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',- 0,- 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'- );--ALTER SEQUENCE repository_id_seq RESTART WITH 18002;diff --git a/backend/migrator/demo/default/10190##anomaly.sql b/backend/migrator/demo/default/10190##anomaly.sqldeleted file mode 100644index 829eb23330..0000000000--- a/backend/migrator/demo/default/10190##anomaly.sql+++ /dev/null@@ -1,125 +0,0 @@--- Database anomalies-INSERT INTO- anomaly (- id,- creator_id,- updater_id,- instance_id,- database_id,- type,- payload- )-VALUES- (- 19001,- 1,- 1,- 6004,- 7014,- 'bb.anomaly.database.connection',- '{"detail":"failed to connect database at mysql.prod.example.com:3306 with user \"root\": dial tcp: lookup mysql.prod.example.com: no such host"}'- );--INSERT INTO- anomaly (- id,- creator_id,- updater_id,- instance_id,- database_id,- type,- payload- )-VALUES- (- 19002,- 1,- 1,- 6004,- 7014,- 'bb.anomaly.database.backup.policy-violation',- '{"environmentId":5004,"expectedSchedule":"DAILY","actualSchedule":"UNSET"}'- );--INSERT INTO- anomaly (- id,- creator_id,- updater_id,- instance_id,- database_id,- type,- payload- )-VALUES- (- 19003,- 1,- 1,- 6003,- 7012,- 'bb.anomaly.database.connection',- '{"detail":"failed to connect database at mysql.staging.example.com:3306 with user \"root\": dial tcp: lookup mysql.staging.example.com: no such host"}'- );--INSERT INTO- anomaly (- id,- creator_id,- updater_id,- instance_id,- database_id,- type,- payload- )-VALUES- (- 19004,- 1,- 1,- 6003,- 7012,- 'bb.anomaly.database.backup.policy-violation',- '{"environmentId":5003,"expectedSchedule":"WEEKLY","actualSchedule":"UNSET"}'- );---- Instance anomalies-INSERT INTO- anomaly (- id,- creator_id,- updater_id,- instance_id,- type,- payload- )-VALUES- (- 19005,- 1,- 1,- 6004,- 'bb.anomaly.instance.connection',- '{"detail":"failed to connect database at mysql.prod.example.com:3306 with user \"root\": dial tcp: lookup mysql.prod.example.com: no such host"}'- );--INSERT INTO- anomaly (- id,- creator_id,- updater_id,- instance_id,- type,- payload- )-VALUES- (- 19006,- 1,- 1,- 6003,- 'bb.anomaly.instance.connection',- '{"detail":"failed to connect database at mysql.staging.example.com:3306 with user \"admin\": dial tcp: lookup mysql.staging.example.com: no such host"}'- );--ALTER SEQUENCE anomaly_id_seq RESTART WITH 19007;diff --git a/backend/migrator/demo/default/README.md b/backend/migrator/demo/default/README.mddeleted file mode 100644index 8931778372..0000000000--- a/backend/migrator/demo/default/README.md+++ /dev/null@@ -1,6 +0,0 @@-Each table corresponds to a file, the file name has the format of {{number}}##{{table_name}}. The-`number` serves several purposes:--1. Specifies the order of tables to be applied.-1. Indicates the starting id sequence for that table. Thus each table has different id range and-can spot errors if we use the id from a wrong table in the foreign key column.\ No newline at end of filediff --git a/backend/migrator/demo/next/demo.sql.REMOVED.git-id b/backend/migrator/demo/next/demo.sql.REMOVED.git-idindex a8afea4307..b937b275f1 100644--- a/backend/migrator/demo/next/demo.sql.REMOVED.git-id+++ b/backend/migrator/demo/next/demo.sql.REMOVED.git-id@@ -1 +1 @@-4ebdb3cddb98b2f7d6a60d4bb1572b9c86c30c47\ No newline at end of file+6a1f34bd1bba07e4ced471622ac29592c613b5f9\ No newline at end of filediff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex 20e5e7e30e..14d9789ce0 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -2814,8 +2814,8 @@"presets": {"owner-dba": "系统定义的流程。先由项目所有者审批,再由 DBA 审批。","owner": "系统定义的流程。只需要项目所有者审批。",- "dba": "系统定义的流程。只需要 DBA 审批",- "admin": "系统定义的流程。只需要管理员审批",+ "dba": "系统定义的流程。只需要 DBA 审批。",+ "admin": "系统定义的流程。只需要管理员审批。","owner-dba-admin": "系统定义的流程。先由项目所有者审批,再由 DBA 审批,最后由管理员审批。"},"view-approval-flow": "查看审批流",