Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: demo seed data (#4003)

Danny Xu91f90e0c0ba1
diff --git a/store/demo/dev/10030##project.sql b/store/demo/dev/10030##project.sql
index aaa1250f09..5b3d3d6f53 100644
--- a/store/demo/dev/10030##project.sql
+++ b/store/demo/dev/10030##project.sql
@@ -100,79 +100,4 @@ VALUES
''
);
-INSERT INTO
- project (
- id,
- creator_id,
- updater_id,
- name,
- key,
- workflow_type,
- visibility,
- tenant_mode,
- db_name_template
- )
-VALUES
- (
- 3005,
- 101,
- 101,
- 'Tenant (Git)',
- 'TNTG',
- 'VCS',
- 'PUBLIC',
- 'TENANT',
- ''
- );
-
-INSERT INTO
- project (
- id,
- creator_id,
- updater_id,
- name,
- key,
- workflow_type,
- visibility,
- tenant_mode,
- db_name_template
- )
-VALUES
- (
- 3006,
- 101,
- 101,
- 'Tenant (UI)',
- 'TNTU',
- 'UI',
- 'PUBLIC',
- 'TENANT',
- ''
- );
-
-INSERT INTO
- project (
- id,
- creator_id,
- updater_id,
- name,
- key,
- workflow_type,
- visibility,
- tenant_mode,
- db_name_template
- )
-VALUES
- (
- 3007,
- 101,
- 101,
- 'A Game',
- 'GAME',
- 'UI',
- 'PUBLIC',
- 'TENANT',
- '{{DB_NAME}}_{{TENANT}}'
- );
-
-ALTER SEQUENCE project_id_seq RESTART WITH 3008;
+ALTER SEQUENCE principal_id_seq RESTART WITH 3005;
diff --git a/store/demo/dev/10040##project_member.sql b/store/demo/dev/10040##project_member.sql
index d982b84b77..1fb1d58281 100644
--- a/store/demo/dev/10040##project_member.sql
+++ b/store/demo/dev/10040##project_member.sql
@@ -192,160 +192,4 @@ VALUES
103
);
--- Project 3005 membership
-INSERT INTO
- project_member (
- id,
- creator_id,
- updater_id,
- project_id,
- role,
- principal_id
- )
-VALUES
- (
- 4011,
- 101,
- 101,
- 3005,
- 'OWNER',
- 101
- );
-
-INSERT INTO
- project_member (
- id,
- creator_id,
- updater_id,
- project_id,
- role,
- principal_id
- )
-VALUES
- (
- 4012,
- 101,
- 101,
- 3005,
- 'DEVELOPER',
- 102
- );
-
--- Project 3006 membership
-INSERT INTO
- project_member (
- id,
- creator_id,
- updater_id,
- project_id,
- role,
- principal_id
- )
-VALUES
- (
- 4013,
- 101,
- 101,
- 3006,
- 'OWNER',
- 101
- );
-
-INSERT INTO
- project_member (
- id,
- creator_id,
- updater_id,
- project_id,
- role,
- principal_id
- )
-VALUES
- (
- 4014,
- 101,
- 101,
- 3006,
- 'DEVELOPER',
- 102
- );
-
-INSERT INTO
- project_member (
- id,
- creator_id,
- updater_id,
- project_id,
- role,
- principal_id
- )
-VALUES
- (
- 4015,
- 101,
- 101,
- 3006,
- 'DEVELOPER',
- 103
- );
-
-
--- Project 3007 membership
-INSERT INTO
- project_member (
- id,
- creator_id,
- updater_id,
- project_id,
- role,
- principal_id
- )
-VALUES
- (
- 4016,
- 101,
- 101,
- 3007,
- 'OWNER',
- 101
- );
-
-INSERT INTO
- project_member (
- id,
- creator_id,
- updater_id,
- project_id,
- role,
- principal_id
- )
-VALUES
- (
- 4017,
- 101,
- 101,
- 3007,
- 'DEVELOPER',
- 102
- );
-
-INSERT INTO
- project_member (
- id,
- creator_id,
- updater_id,
- project_id,
- role,
- principal_id
- )
-VALUES
- (
- 4018,
- 101,
- 101,
- 3007,
- 'DEVELOPER',
- 103
- );
-
-ALTER SEQUENCE project_member_id_seq RESTART WITH 4019;
+ALTER SEQUENCE project_member_id_seq RESTART WITH 4011;
diff --git a/store/demo/dev/10070##db.sql b/store/demo/dev/10070##db.sql
index 522ac50010..c468fbc2d2 100644
--- a/store/demo/dev/10070##db.sql
+++ b/store/demo/dev/10070##db.sql
@@ -526,36 +526,6 @@ VALUES
''
);
--- Database for dev environment PostgreSQL instance 6006
-INSERT INTO
- db (
- id,
- creator_id,
- updater_id,
- instance_id,
- project_id,
- name,
- character_set,
- "collation",
- sync_status,
- last_successful_sync_ts,
- schema_version
- )
-VALUES
- (
- 7019,
- 101,
- 101,
- 6006,
- 3001,
- 'postgre_demo',
- 'utf8mb4',
- 'utf8mb4_general_ci',
- 'OK',
- 0,
- ''
- );
-
-- Database for dev environment TiDB instance 6007
INSERT INTO
db (
@@ -646,260 +616,4 @@ VALUES
''
);
--- Databases for tenant mode project.
-INSERT INTO
- db (
- id,
- creator_id,
- updater_id,
- instance_id,
- project_id,
- name,
- character_set,
- "collation",
- sync_status,
- last_successful_sync_ts,
- schema_version
- )
-VALUES
- (
- 7023,
- 101,
- 101,
- 6001,
- 3005,
- 'tenant_db1',
- 'utf8mb4',
- 'utf8mb4_general_ci',
- 'OK',
- 1624558090,
- 'v1'
- );
-INSERT INTO
- db (
- id,
- creator_id,
- updater_id,
- instance_id,
- project_id,
- name,
- character_set,
- "collation",
- sync_status,
- last_successful_sync_ts,
- schema_version
- )
-VALUES
- (
- 7024,
- 101,
- 101,
- 6002,
- 3005,
- 'tenant_db1',
- 'utf8mb4',
- 'utf8mb4_general_ci',
- 'OK',
- 1624558090,
- 'v1'
- );
-INSERT INTO
- db (
- id,
- creator_id,
- updater_id,
- instance_id,
- project_id,
- name,
- character_set,
- "collation",
- sync_status,
- last_successful_sync_ts,
- schema_version
- )
-VALUES
- (
- 7025,
- 101,
- 101,
- 6001,
- 3006,
- 'tenant_db2',
- 'utf8mb4',
- 'utf8mb4_general_ci',
- 'OK',
- 1624558090,
- '2021v1'
- );
-INSERT INTO
- db (
- id,
- creator_id,
- updater_id,
- instance_id,
- project_id,
- name,
- character_set,
- "collation",
- sync_status,
- last_successful_sync_ts,
- schema_version
- )
-VALUES
- (
- 7026,
- 101,
- 101,
- 6002,
- 3006,
- 'tenant_db2',
- 'utf8mb4',
- 'utf8mb4_general_ci',
- 'OK',
- 1624558090,
- '2021v1'
- );
-INSERT INTO
- db (
- id,
- creator_id,
- updater_id,
- instance_id,
- project_id,
- name,
- character_set,
- "collation",
- sync_status,
- last_successful_sync_ts,
- schema_version
- )
-VALUES
- (
- 7027,
- 101,
- 101,
- 6001,
- 3007,
- 'game_dev',
- 'utf8mb4',
- 'utf8mb4_general_ci',
- 'OK',
- 1624558090,
- '2022v0'
- );
-INSERT INTO
- db (
- id,
- creator_id,
- updater_id,
- instance_id,
- project_id,
- name,
- character_set,
- "collation",
- sync_status,
- last_successful_sync_ts,
- schema_version
- )
-VALUES
- (
- 7028,
- 101,
- 101,
- 6003,
- 3007,
- 'game_public_test',
- 'utf8mb4',
- 'utf8mb4_general_ci',
- 'OK',
- 1624558090,
- '2022v0'
- );
-INSERT INTO
- db (
- id,
- creator_id,
- updater_id,
- instance_id,
- project_id,
- name,
- character_set,
- "collation",
- sync_status,
- last_successful_sync_ts,
- schema_version
- )
-VALUES
- (
- 7029,
- 101,
- 101,
- 6004,
- 3007,
- 'game_turtle_rock',
- 'utf8mb4',
- 'utf8mb4_general_ci',
- 'OK',
- 1624558090,
- '2022v0'
- );
-INSERT INTO
- db (
- id,
- creator_id,
- updater_id,
- instance_id,
- project_id,
- name,
- character_set,
- "collation",
- sync_status,
- last_successful_sync_ts,
- schema_version
- )
-VALUES
- (
- 7030,
- 101,
- 101,
- 6004,
- 3007,
- 'game_echo_island',
- 'utf8mb4',
- 'utf8mb4_general_ci',
- 'NOT_FOUND',
- 1624558090,
- '2022v0'
- );
-
--- Database for prod environment archived mysql instance 6010
-INSERT INTO
- db (
- id,
- creator_id,
- updater_id,
- instance_id,
- project_id,
- name,
- character_set,
- "collation",
- sync_status,
- last_successful_sync_ts,
- schema_version
- )
-VALUES
- (
- 7031,
- 101,
- 101,
- 6010,
- 3001,
- '*',
- 'utf8mb4',
- 'utf8mb4_general_ci',
- 'OK',
- 0,
- ''
- );
-
-ALTER SEQUENCE db_id_seq RESTART WITH 7032;
+ALTER SEQUENCE db_id_seq RESTART WITH 7023;
diff --git a/store/demo/dev/10071##db_schema.sql b/store/demo/dev/10071##db_schema.sql
new file mode 100644
index 0000000000..bd9ce466b3
--- /dev/null
+++ b/store/demo/dev/10071##db_schema.sql
@@ -0,0 +1,205 @@
+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/store/demo/dev/10071##tbl.sql b/store/demo/dev/10071##tbl.sql
deleted file mode 100644
index 5111e69d73..0000000000
--- a/store/demo/dev/10071##tbl.sql
+++ /dev/null
@@ -1,677 +0,0 @@
--- Table for database 7002 testdb_dev
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7101,
- 101,
- 101,
- 7002,
- 'tbl1',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 1234,
- 16384,
- 0,
- 0,
- '',
- ''
- );
-
--- Table for database 7006 testdb_integration
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7102,
- 101,
- 101,
- 7006,
- 'tbl1',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 1234,
- 16384,
- 16384,
- 65536,
- '',
- ''
- );
-
--- Table for database 7010 testdb_staging
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7103,
- 101,
- 101,
- 7010,
- 'tbl1',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 12234,
- 65536,
- 16384,
- 655360,
- '',
- ''
- );
-
--- Table for database 7014 testdb_prod
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7104,
- 101,
- 101,
- 7014,
- 'tbl1',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 1234,
- 32768,
- 4096,
- 327680,
- '',
- ''
- );
-
--- Table for database 7003 shop
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7105,
- 101,
- 101,
- 7003,
- 'product',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 1000,
- 4096,
- 0,
- 409600,
- '',
- ''
- );
-
--- Table for database 7007 shop
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7106,
- 101,
- 101,
- 7007,
- 'product',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 1000,
- 4096,
- 1024,
- 0,
- '',
- ''
- );
-
--- Table for database 7004 blog
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7107,
- 101,
- 101,
- 7004,
- 'user',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 1000,
- 4096,
- 1024,
- 204800,
- '',
- ''
- );
-
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7108,
- 101,
- 101,
- 7004,
- 'post',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 1000,
- 8192,
- 1024,
- 204800,
- '',
- ''
- );
-
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7109,
- 101,
- 101,
- 7004,
- 'comment',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 30000,
- 65536,
- 4096,
- 102400,
- '',
- ''
- );
-
--- Table for database 7008 blog
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7110,
- 101,
- 101,
- 7008,
- 'user',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 100,
- 4096,
- 0,
- 204800,
- '',
- ''
- );
-
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7111,
- 101,
- 101,
- 7008,
- 'post',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 300,
- 4096,
- 1024,
- 102400,
- '',
- ''
- );
-
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7112,
- 101,
- 101,
- 7008,
- 'comment',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 2000,
- 65536,
- 2048,
- 40960,
- '',
- ''
- );
-
--- Table for database 7012 blog
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7113,
- 101,
- 101,
- 7012,
- 'user',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 200,
- 4096,
- 1024,
- 81920,
- '',
- ''
- );
-
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7114,
- 101,
- 101,
- 7012,
- 'post',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 500,
- 4096,
- 1024,
- 8192,
- '',
- ''
- );
-
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7115,
- 101,
- 101,
- 7012,
- 'comment',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 4000,
- 65536,
- 65536,
- 20480,
- '',
- ''
- );
-
--- Table for database 7016 blog
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7116,
- 101,
- 101,
- 7016,
- 'user',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 200,
- 4096,
- 1024,
- 0,
- '',
- ''
- );
-
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7117,
- 101,
- 101,
- 7016,
- 'post',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 500,
- 4096,
- 1024,
- 2048,
- '',
- ''
- );
-
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7118,
- 101,
- 101,
- 7016,
- 'comment',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 7000,
- 8192,
- 0,
- 8192,
- '',
- ''
- );
-
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7119,
- 101,
- 101,
- 7019,
- 'blog',
- 'BASE TABLE',
- -- PostgreSQL doesn't use pluggable engines.
- 'ACID',
- 'utf8mb4_general_ci',
- 7000,
- 8192,
- 0,
- 8192,
- '',
- ''
- );
-
-ALTER SEQUENCE tbl_id_seq RESTART WITH 7120;
diff --git a/store/demo/dev/10072##col.sql b/store/demo/dev/10072##col.sql
deleted file mode 100644
index b75f8821cb..0000000000
--- a/store/demo/dev/10072##col.sql
+++ /dev/null
@@ -1,1801 +0,0 @@
--- Column for database 7002 testdb_dev, table 7101 tbl1
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7201,
- 101,
- 101,
- 7002,
- 7101,
- 'col1',
- 1,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- 'I am a comment'
- );
-
--- Column for database 7006 testdb_integration, table 7102 tbl1
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7202,
- 101,
- 101,
- 7006,
- 7102,
- 'col1',
- 1,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- 'I am a comment'
- );
-
--- Column for database 7010 testdb_staging, table 7103 tbl1
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7203,
- 101,
- 101,
- 7010,
- 7103,
- 'col1',
- 1,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- 'I am a comment'
- );
-
--- Column for database 7014 testdb_prod, table 7104 tbl1
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7204,
- 101,
- 101,
- 7014,
- 7104,
- 'col1',
- 1,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- 'I am a comment'
- );
-
--- Column for database 7003 shop, table 7105 product
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7205,
- 101,
- 101,
- 7003,
- 7105,
- 'id',
- 1,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7206,
- 101,
- 101,
- 7003,
- 7105,
- 'name',
- 2,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7207,
- 101,
- 101,
- 7003,
- 7105,
- 'description',
- 3,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
--- Column for database 7007 shop, table 7106 product
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7208,
- 101,
- 101,
- 7007,
- 7106,
- 'id',
- 1,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7209,
- 101,
- 101,
- 7007,
- 7106,
- 'name',
- 2,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7210,
- 101,
- 101,
- 7007,
- 7106,
- 'description',
- 3,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
--- Column for database 7004 blog, table 7107 user
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7211,
- 101,
- 101,
- 7004,
- 7107,
- 'id',
- 1,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7212,
- 101,
- 101,
- 7004,
- 7107,
- 'name',
- 2,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7213,
- 101,
- 101,
- 7004,
- 7107,
- 'email',
- 3,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
--- Column for database 7004 blog, table 7108 post
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7214,
- 101,
- 101,
- 7004,
- 7108,
- 'id',
- 1,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7215,
- 101,
- 101,
- 7004,
- 7108,
- 'name',
- 2,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7216,
- 101,
- 101,
- 7004,
- 7108,
- 'content',
- 3,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7217,
- 101,
- 101,
- 7004,
- 7108,
- 'author_id',
- 4,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
--- Column for database 7004 blog, table 7109 comment
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7218,
- 101,
- 101,
- 7004,
- 7109,
- 'id',
- 1,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7219,
- 101,
- 101,
- 7004,
- 7109,
- 'content',
- 2,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7220,
- 101,
- 101,
- 7004,
- 7109,
- 'post_id',
- 3,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7221,
- 101,
- 101,
- 7004,
- 7109,
- 'author_id',
- 4,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
--- Column for database 7008 blog, table 7110 user
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7222,
- 101,
- 101,
- 7008,
- 7110,
- 'id',
- 1,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7223,
- 101,
- 101,
- 7008,
- 7110,
- 'name',
- 2,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7224,
- 101,
- 101,
- 7008,
- 7110,
- 'email',
- 3,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
--- Column for database 7008 blog, table 7111 post
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7225,
- 101,
- 101,
- 7008,
- 7111,
- 'id',
- 1,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7226,
- 101,
- 101,
- 7008,
- 7111,
- 'name',
- 2,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7227,
- 101,
- 101,
- 7008,
- 7111,
- 'content',
- 3,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7228,
- 101,
- 101,
- 7008,
- 7111,
- 'author_id',
- 4,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
--- Column for database 7008 blog, table 7112 comment
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7229,
- 101,
- 101,
- 7008,
- 7112,
- 'id',
- 1,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7230,
- 101,
- 101,
- 7008,
- 7112,
- 'content',
- 2,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7231,
- 101,
- 101,
- 7008,
- 7112,
- 'post_id',
- 3,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7232,
- 101,
- 101,
- 7008,
- 7112,
- 'author_id',
- 4,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
--- Column for database 7012 blog, table 7113 user
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7233,
- 101,
- 101,
- 7012,
- 7113,
- 'id',
- 1,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7234,
- 101,
- 101,
- 7012,
- 7113,
- 'name',
- 2,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7235,
- 101,
- 101,
- 7012,
- 7113,
- 'email',
- 3,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
--- Column for database 7012 blog, table 7114 post
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7236,
- 101,
- 101,
- 7012,
- 7114,
- 'id',
- 1,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7237,
- 101,
- 101,
- 7012,
- 7114,
- 'name',
- 2,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7238,
- 101,
- 101,
- 7012,
- 7114,
- 'content',
- 3,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7239,
- 101,
- 101,
- 7012,
- 7114,
- 'author_id',
- 4,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
--- Column for database 7012 blog, table 7115 comment
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7240,
- 101,
- 101,
- 7012,
- 7115,
- 'id',
- 1,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7241,
- 101,
- 101,
- 7012,
- 7115,
- 'content',
- 2,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7242,
- 101,
- 101,
- 7012,
- 7115,
- 'post_id',
- 3,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7243,
- 101,
- 101,
- 7012,
- 7115,
- 'author_id',
- 4,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
--- Column for database 7016 blog, table 7116 user
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7244,
- 101,
- 101,
- 7016,
- 7116,
- 'id',
- 1,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7245,
- 101,
- 101,
- 7016,
- 7116,
- 'name',
- 2,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7246,
- 101,
- 101,
- 7016,
- 7116,
- 'email',
- 3,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
--- Column for database 7008 blog, table 7117 post
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7247,
- 101,
- 101,
- 7016,
- 7117,
- 'id',
- 1,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7248,
- 101,
- 101,
- 7016,
- 7117,
- 'name',
- 2,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7249,
- 101,
- 101,
- 7016,
- 7117,
- 'content',
- 3,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7250,
- 101,
- 101,
- 7016,
- 7117,
- 'author_id',
- 4,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
--- Column for database 7016 blog, table 7118 comment
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7251,
- 101,
- 101,
- 7016,
- 7118,
- 'id',
- 1,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7252,
- 101,
- 101,
- 7016,
- 7118,
- 'content',
- 2,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7253,
- 101,
- 101,
- 7016,
- 7118,
- 'post_id',
- 3,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7254,
- 101,
- 101,
- 7016,
- 7118,
- 'author_id',
- 4,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-ALTER SEQUENCE col_id_seq RESTART WITH 7255;
diff --git a/store/demo/dev/10073##idx.sql b/store/demo/dev/10073##idx.sql
deleted file mode 100644
index 51177fb71d..0000000000
--- a/store/demo/dev/10073##idx.sql
+++ /dev/null
@@ -1,613 +0,0 @@
--- Index for database 7002 testdb_dev, table 7101 tbl1
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7301,
- 101,
- 101,
- 7002,
- 7101,
- 'idx_col1',
- 'col1',
- 1,
- 'BTREE',
- false,
- false,
- true,
- ''
- );
-
--- Index for database 7006 testdb_dev, table 7102 tbl1
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7302,
- 101,
- 101,
- 7006,
- 7102,
- 'idx_col1',
- 'col1',
- 1,
- 'BTREE',
- false,
- false,
- true,
- ''
- );
-
--- Index for database 7010 testdb_dev, table 7103 tbl1
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7303,
- 101,
- 101,
- 7010,
- 7103,
- 'idx_col1',
- 'col1',
- 1,
- 'BTREE',
- true,
- false,
- true,
- ''
- );
-
--- Index for database 7014 testdb_dev, table 7104 tbl1
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7304,
- 101,
- 101,
- 7014,
- 7104,
- 'idx_col1',
- 'col1',
- 1,
- 'BTREE',
- true,
- false,
- true,
- ''
- );
-
--- Index for database 7003 shop, table 7105 product
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7305,
- 101,
- 101,
- 7003,
- 7105,
- 'PRIMARY',
- 'id',
- 1,
- 'BTREE',
- true,
- true,
- true,
- ''
- );
-
--- Index for database 7007 shop, table 7106 product
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7306,
- 101,
- 101,
- 7007,
- 7106,
- 'PRIMARY',
- 'id',
- 1,
- 'BTREE',
- true,
- true,
- true,
- ''
- );
-
--- Index for database 7004 blog, table 7107 user
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7307,
- 101,
- 101,
- 7004,
- 7107,
- 'PRIMARY',
- 'id',
- 1,
- 'BTREE',
- true,
- true,
- true,
- ''
- );
-
--- Index for database 7004 blog, table 7108 post
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7308,
- 101,
- 101,
- 7004,
- 7108,
- 'PRIMARY',
- 'id',
- 1,
- 'BTREE',
- true,
- true,
- true,
- ''
- );
-
--- Index for database 7004 blog, table 7109 comment
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7309,
- 101,
- 101,
- 7004,
- 7109,
- 'PRIMARY',
- 'id',
- 1,
- 'BTREE',
- true,
- true,
- true,
- ''
- );
-
--- Index for database 7008 blog, table 7110 user
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7310,
- 101,
- 101,
- 7008,
- 7110,
- 'PRIMARY',
- 'id',
- 1,
- 'BTREE',
- true,
- true,
- true,
- ''
- );
-
--- Index for database 7008 blog, table 7111 post
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7311,
- 101,
- 101,
- 7008,
- 7111,
- 'PRIMARY',
- 'id',
- 1,
- 'BTREE',
- true,
- true,
- true,
- ''
- );
-
--- Index for database 7008 blog, table 7112 comment
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7312,
- 101,
- 101,
- 7008,
- 7112,
- 'PRIMARY',
- 'id',
- 1,
- 'BTREE',
- true,
- true,
- true,
- ''
- );
-
--- Index for database 7012 blog, table 7113 user
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7313,
- 101,
- 101,
- 7012,
- 7113,
- 'PRIMARY',
- 'id',
- 1,
- 'BTREE',
- true,
- true,
- true,
- ''
- );
-
--- Index for database 7012 blog, table 7114 post
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7314,
- 101,
- 101,
- 7012,
- 7114,
- 'PRIMARY',
- 'id',
- 1,
- 'BTREE',
- true,
- true,
- true,
- ''
- );
-
--- Index for database 7012 blog, table 7115 comment
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7315,
- 101,
- 101,
- 7012,
- 7115,
- 'PRIMARY',
- 'id',
- 1,
- 'BTREE',
- true,
- true,
- true,
- ''
- );
-
--- Index for database 7016 blog, table 7116 user
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7316,
- 101,
- 101,
- 7016,
- 7116,
- 'PRIMARY',
- 'id',
- 1,
- 'BTREE',
- true,
- true,
- true,
- ''
- );
-
--- Index for database 7016 blog, table 7117 post
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7317,
- 101,
- 101,
- 7016,
- 7117,
- 'PRIMARY',
- 'id',
- 1,
- 'BTREE',
- true,
- true,
- true,
- ''
- );
-
--- Index for database 7016 blog, table 7118 comment
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7318,
- 101,
- 101,
- 7016,
- 7118,
- 'PRIMARY',
- 'id',
- 1,
- 'BTREE',
- true,
- true,
- true,
- ''
- );
-
-ALTER SEQUENCE idx_id_seq RESTART WITH 7319;
diff --git a/store/demo/dev/10080##data_source.sql b/store/demo/dev/10080##data_source.sql
index b01490769f..a8f0e35f51 100644
--- a/store/demo/dev/10080##data_source.sql
+++ b/store/demo/dev/10080##data_source.sql
@@ -223,29 +223,4 @@ VALUES
''
);
-INSERT INTO
- data_source (
- id,
- creator_id,
- updater_id,
- instance_id,
- database_id,
- name,
- TYPE,
- username,
- PASSWORD
- )
-VALUES
- (
- 8010,
- 1,
- 1,
- 6010,
- 7031,
- 'Admin data source',
- 'ADMIN',
- 'admin',
- 'Prod12345'
- );
-
-ALTER SEQUENCE data_source_id_seq RESTART WITH 8011;
+ALTER SEQUENCE data_source_id_seq RESTART WITH 8010;
diff --git a/store/demo/dev/10180##repository.sql b/store/demo/dev/10180##repository.sql
index 99d4daaa9f..33d717aa5c 100644
--- a/store/demo/dev/10180##repository.sql
+++ b/store/demo/dev/10180##repository.sql
@@ -101,54 +101,4 @@ VALUES
'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
);
--- 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,
- external_id,
- external_webhook_id,
- webhook_url_host,
- webhook_endpoint_id,
- webhook_secret_token,
- access_token,
- expires_ts,
- refresh_token
- )
-VALUES
- (
- 18003,
- 101,
- 101,
- 17001,
- 3005,
- 'Tenant',
- 'bytebase-demo/tenant',
- 'http://gitlab.bytebase.com/bytebase-demo/tenant',
- 'master',
- 'bytebase',
- '{{DB_NAME}}##{{VERSION}}##{{TYPE}}##{{DESCRIPTION}}.sql',
- '.{{DB_NAME}}##LATEST.sql',
- -- Refers to the bytebase-demo/tenant
- '15',
- -- Refers to the webhook in bytebase-demo/tenant
- '62',
- 'https://demo.bytebase.com',
- 'e48bf625-7f58-4d6b-a5be-b97af313d7ea',
- 'xxxxxxxxxxxxxxxx',
- 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
- 0,
- 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
- );
-
-ALTER SEQUENCE repository_id_seq RESTART WITH 18004;
+ALTER SEQUENCE repository_id_seq RESTART WITH 18002;
diff --git a/store/demo/dev/10200##label.sql b/store/demo/dev/10200##label.sql
deleted file mode 100644
index 1c04b729da..0000000000
--- a/store/demo/dev/10200##label.sql
+++ /dev/null
@@ -1,401 +0,0 @@
--- Label keys.
-INSERT INTO
- label_key (
- id,
- creator_id,
- updater_id,
- key
- )
-VALUES
- (
- 20001,
- 1,
- 1,
- 'bb.location'
- );
-
-INSERT INTO
- label_key (
- id,
- creator_id,
- updater_id,
- key
- )
-VALUES
- (
- 20002,
- 1,
- 1,
- 'bb.tenant'
- );
-
-ALTER SEQUENCE label_key_id_seq RESTART WITH 20003;
-
--- Label values.
-INSERT INTO
- label_value (
- id,
- creator_id,
- updater_id,
- key,
- value
- )
-VALUES
- (
- 20010,
- 1,
- 1,
- 'bb.location',
- 'earth'
- );
-
-INSERT INTO
- label_value (
- id,
- creator_id,
- updater_id,
- key,
- value
- )
-VALUES
- (
- 20011,
- 1,
- 1,
- 'bb.tenant',
- 'bytebase'
- );
-
-INSERT INTO
- label_value (
- id,
- creator_id,
- updater_id,
- key,
- value
- )
-VALUES
- (
- 20012,
- 1,
- 1,
- 'bb.location',
- 'east'
- );
-
-INSERT INTO
- label_value (
- id,
- creator_id,
- updater_id,
- key,
- value
- )
-VALUES
- (
- 20013,
- 1,
- 1,
- 'bb.location',
- 'west'
- );
-
-INSERT INTO
- label_value (
- id,
- creator_id,
- updater_id,
- key,
- value
- )
-VALUES
- (
- 20014,
- 1,
- 1,
- 'bb.tenant',
- 'turtle_rock'
- );
-
-INSERT INTO
- label_value (
- id,
- creator_id,
- updater_id,
- key,
- value
- )
-VALUES
- (
- 20015,
- 1,
- 1,
- 'bb.tenant',
- 'echo_island'
- );
-
-INSERT INTO
- label_value (
- id,
- creator_id,
- updater_id,
- key,
- value
- )
-VALUES
- (
- 20016,
- 1,
- 1,
- 'bb.tenant',
- 'public_test'
- );
-
-INSERT INTO
- label_value (
- id,
- creator_id,
- updater_id,
- key,
- value
- )
-VALUES
- (
- 20017,
- 1,
- 1,
- 'bb.tenant',
- 'dev'
- );
-
-ALTER SEQUENCE label_value_id_seq RESTART WITH 20018;
-
--- Database labels for database in tenant mode disabled project.
-INSERT INTO
- db_label (
- id,
- creator_id,
- updater_id,
- database_id,
- key,
- value
- )
-VALUES
- (
- 20021,
- 1,
- 1,
- 7002,
- 'bb.location',
- 'earth'
- );
-
-INSERT INTO
- db_label (
- id,
- creator_id,
- updater_id,
- database_id,
- key,
- value
- )
-VALUES
- (
- 20022,
- 1,
- 1,
- 7002,
- 'bb.tenant',
- 'bytebase'
- );
-
--- Database labels for database in tenant mode project.
-INSERT INTO
- db_label (
- id,
- creator_id,
- updater_id,
- database_id,
- key,
- value
- )
-VALUES
- (
- 20023,
- 1,
- 1,
- 7021,
- 'bb.location',
- 'earth'
- );
-
-INSERT INTO
- db_label (
- id,
- creator_id,
- updater_id,
- database_id,
- key,
- value
- )
-VALUES
- (
- 20024,
- 1,
- 1,
- 7022,
- 'bb.tenant',
- 'bytebase'
- );
-INSERT INTO
- db_label (
- id,
- creator_id,
- updater_id,
- database_id,
- key,
- value
- )
-VALUES
- (
- 20025,
- 1,
- 1,
- 7023,
- 'bb.location',
- 'earth'
- );
-
-INSERT INTO
- db_label (
- id,
- creator_id,
- updater_id,
- database_id,
- key,
- value
- )
-VALUES
- (
- 20026,
- 1,
- 1,
- 7024,
- 'bb.tenant',
- 'bytebase'
- );
-INSERT INTO
- db_label (
- id,
- creator_id,
- updater_id,
- database_id,
- key,
- value
- )
-VALUES
- (
- 20027,
- 1,
- 1,
- 7027,
- 'bb.tenant',
- 'dev'
- );
-
-INSERT INTO
- db_label (
- id,
- creator_id,
- updater_id,
- database_id,
- key,
- value
- )
-VALUES
- (
- 20028,
- 1,
- 1,
- 7028,
- 'bb.tenant',
- 'public_test'
- );
-
-INSERT INTO
- db_label (
- id,
- creator_id,
- updater_id,
- database_id,
- key,
- value
- )
-VALUES
- (
- 20029,
- 1,
- 1,
- 7029,
- 'bb.tenant',
- 'turtle_rock'
- );
-
-INSERT INTO
- db_label (
- id,
- creator_id,
- updater_id,
- database_id,
- key,
- value
- )
-VALUES
- (
- 20030,
- 1,
- 1,
- 7029,
- 'bb.location',
- 'east'
- );
-
-INSERT INTO
- db_label (
- id,
- creator_id,
- updater_id,
- database_id,
- key,
- value
- )
-VALUES
- (
- 20031,
- 1,
- 1,
- 7030,
- 'bb.tenant',
- 'echo_island'
- );
-
-INSERT INTO
- db_label (
- id,
- creator_id,
- updater_id,
- database_id,
- key,
- value
- )
-VALUES
- (
- 20032,
- 1,
- 1,
- 7030,
- 'bb.location',
- 'west'
- );
-
-ALTER SEQUENCE db_label_id_seq RESTART WITH 20033;
diff --git a/store/demo/dev/10210##deployment_config.sql b/store/demo/dev/10210##deployment_config.sql
deleted file mode 100644
index 0731459e9f..0000000000
--- a/store/demo/dev/10210##deployment_config.sql
+++ /dev/null
@@ -1,60 +0,0 @@
--- Deployment config with regional deployments for tenant mode project.
-INSERT INTO
- deployment_config (
- id,
- creator_id,
- updater_id,
- project_id,
- name,
- config
- )
-VALUES
- (
- 21001,
- 101,
- 101,
- 3005,
- 'regional-1',
- '{"deployments":[{"name":"Dev Stage","spec":{"selector":{"matchExpressions":[{"key":"bb.environment","operator":"In","values":["Dev"]},{"key":"bb.location","operator":"In","values":["earth"]}]}}},{"name":"Integration Stage","spec":{"selector":{"matchExpressions":[{"key":"bb.environment","operator":"In","values":["Integration"]},{"key":"bb.tenant","operator":"Exists"}]}}}]}'
- );
-
-INSERT INTO
- deployment_config (
- id,
- creator_id,
- updater_id,
- project_id,
- name,
- config
- )
-VALUES
- (
- 21002,
- 101,
- 101,
- 3006,
- 'regional-2',
- '{"deployments":[{"name":"Dev Stage","spec":{"selector":{"matchExpressions":[{"key":"bb.environment","operator":"In","values":["Dev"]},{"key":"bb.location","operator":"In","values":["earth"]}]}}},{"name":"Integration Stage","spec":{"selector":{"matchExpressions":[{"key":"bb.environment","operator":"In","values":["Integration"]},{"key":"bb.tenant","operator":"Exists"}]}}}]}'
- );
-
-
-INSERT INTO
- deployment_config (
- id,
- creator_id,
- updater_id,
- project_id,
- name,
- config
- )
-VALUES
- (
- 21003,
- 101,
- 101,
- 3007,
- 'db-pattern',
- '{"deployments":[{"name":"Dev Stage","spec":{"selector":{"matchExpressions":[{"key":"bb.environment","operator":"In","values":["Dev"]},{"key":"bb.tenant","operator":"In","values":["dev"]}]}}},{"name":"PTR Stage","spec":{"selector":{"matchExpressions":[{"key":"bb.environment","operator":"In","values":["Staging"]},{"key":"bb.tenant","operator":"Exists"}]}}},{"name":"Release Stage","spec":{"selector":{"matchExpressions":[{"key":"bb.environment","operator":"In","values":["Prod"]},{"key":"bb.tenant","operator":"Exists"}]}}}]}'
- );
-
-ALTER SEQUENCE deployment_config_id_seq RESTART WITH 21004;
diff --git a/store/demo/dev/10220##sheet.sql b/store/demo/dev/10220##sheet.sql
deleted file mode 100644
index cd3cbf7ee7..0000000000
--- a/store/demo/dev/10220##sheet.sql
+++ /dev/null
@@ -1,89 +0,0 @@
-INSERT INTO
- sheet (
- id,
- creator_id,
- updater_id,
- project_id,
- database_id,
- name,
- statement,
- visibility
- )
-VALUES
- (
- 22001,
- 101,
- 101,
- 3001,
- 7019,
- 'My test cases',
- 'SELECT * FROM test_case',
- 'PRIVATE'
- );
-
-INSERT INTO
- sheet (
- id,
- row_status,
- creator_id,
- updater_id,
- project_id,
- name,
- statement,
- visibility
- )
-VALUES
- (
- 22002,
- 'ARCHIVED',
- 101,
- 101,
- 3002,
- 'My starred items',
- 'SELECT * FROM item WHERE starred=true',
- 'PRIVATE'
- );
-
-INSERT INTO
- sheet (
- id,
- creator_id,
- updater_id,
- project_id,
- name,
- statement,
- visibility
- )
-VALUES
- (
- 22003,
- 102,
- 102,
- 3002,
- 'All coupon of our shop',
- 'SELECT * FROM coupon WHERE shop_id=101',
- 'PROJECT'
- );
-
-INSERT INTO
- sheet (
- id,
- creator_id,
- updater_id,
- project_id,
- name,
- statement,
- visibility
- )
-VALUES
- (
- 22004,
- 103,
- 103,
- 3003,
- 'All blogs from Alex',
- 'SELECT * FROM blog WHERE author="Alex"',
- 'PUBLIC'
- );
-
-ALTER SEQUENCE sheet_id_seq RESTART WITH 22005;
diff --git a/store/demo/dev/10221##sheet_organizer.sql b/store/demo/dev/10221##sheet_organizer.sql
deleted file mode 100644
index f81eba639c..0000000000
--- a/store/demo/dev/10221##sheet_organizer.sql
+++ /dev/null
@@ -1,69 +0,0 @@
-INSERT INTO
- sheet_organizer (
- id,
- sheet_id,
- principal_id,
- starred,
- pinned
- )
-VALUES
- (
- 22101,
- 22001,
- 101,
- false,
- false
- );
-
-INSERT INTO
- sheet_organizer (
- id,
- sheet_id,
- principal_id,
- starred,
- pinned
- )
-VALUES
- (
- 22102,
- 22002,
- 101,
- true,
- false
- );
-
-INSERT INTO
- sheet_organizer (
- id,
- sheet_id,
- principal_id,
- starred,
- pinned
- )
-VALUES
- (
- 22103,
- 22003,
- 102,
- false,
- true
- );
-
-INSERT INTO
- sheet_organizer (
- id,
- sheet_id,
- principal_id,
- starred,
- pinned
- )
-VALUES
- (
- 22104,
- 22004,
- 102,
- true,
- false
- );
-
-ALTER SEQUENCE sheet_id_seq RESTART WITH 22105;
diff --git a/store/demo/prod/10030##project.sql b/store/demo/prod/10030##project.sql
index aaa1250f09..5b3d3d6f53 100644
--- a/store/demo/prod/10030##project.sql
+++ b/store/demo/prod/10030##project.sql
@@ -100,79 +100,4 @@ VALUES
''
);
-INSERT INTO
- project (
- id,
- creator_id,
- updater_id,
- name,
- key,
- workflow_type,
- visibility,
- tenant_mode,
- db_name_template
- )
-VALUES
- (
- 3005,
- 101,
- 101,
- 'Tenant (Git)',
- 'TNTG',
- 'VCS',
- 'PUBLIC',
- 'TENANT',
- ''
- );
-
-INSERT INTO
- project (
- id,
- creator_id,
- updater_id,
- name,
- key,
- workflow_type,
- visibility,
- tenant_mode,
- db_name_template
- )
-VALUES
- (
- 3006,
- 101,
- 101,
- 'Tenant (UI)',
- 'TNTU',
- 'UI',
- 'PUBLIC',
- 'TENANT',
- ''
- );
-
-INSERT INTO
- project (
- id,
- creator_id,
- updater_id,
- name,
- key,
- workflow_type,
- visibility,
- tenant_mode,
- db_name_template
- )
-VALUES
- (
- 3007,
- 101,
- 101,
- 'A Game',
- 'GAME',
- 'UI',
- 'PUBLIC',
- 'TENANT',
- '{{DB_NAME}}_{{TENANT}}'
- );
-
-ALTER SEQUENCE project_id_seq RESTART WITH 3008;
+ALTER SEQUENCE principal_id_seq RESTART WITH 3005;
diff --git a/store/demo/prod/10040##project_member.sql b/store/demo/prod/10040##project_member.sql
index d982b84b77..1fb1d58281 100644
--- a/store/demo/prod/10040##project_member.sql
+++ b/store/demo/prod/10040##project_member.sql
@@ -192,160 +192,4 @@ VALUES
103
);
--- Project 3005 membership
-INSERT INTO
- project_member (
- id,
- creator_id,
- updater_id,
- project_id,
- role,
- principal_id
- )
-VALUES
- (
- 4011,
- 101,
- 101,
- 3005,
- 'OWNER',
- 101
- );
-
-INSERT INTO
- project_member (
- id,
- creator_id,
- updater_id,
- project_id,
- role,
- principal_id
- )
-VALUES
- (
- 4012,
- 101,
- 101,
- 3005,
- 'DEVELOPER',
- 102
- );
-
--- Project 3006 membership
-INSERT INTO
- project_member (
- id,
- creator_id,
- updater_id,
- project_id,
- role,
- principal_id
- )
-VALUES
- (
- 4013,
- 101,
- 101,
- 3006,
- 'OWNER',
- 101
- );
-
-INSERT INTO
- project_member (
- id,
- creator_id,
- updater_id,
- project_id,
- role,
- principal_id
- )
-VALUES
- (
- 4014,
- 101,
- 101,
- 3006,
- 'DEVELOPER',
- 102
- );
-
-INSERT INTO
- project_member (
- id,
- creator_id,
- updater_id,
- project_id,
- role,
- principal_id
- )
-VALUES
- (
- 4015,
- 101,
- 101,
- 3006,
- 'DEVELOPER',
- 103
- );
-
-
--- Project 3007 membership
-INSERT INTO
- project_member (
- id,
- creator_id,
- updater_id,
- project_id,
- role,
- principal_id
- )
-VALUES
- (
- 4016,
- 101,
- 101,
- 3007,
- 'OWNER',
- 101
- );
-
-INSERT INTO
- project_member (
- id,
- creator_id,
- updater_id,
- project_id,
- role,
- principal_id
- )
-VALUES
- (
- 4017,
- 101,
- 101,
- 3007,
- 'DEVELOPER',
- 102
- );
-
-INSERT INTO
- project_member (
- id,
- creator_id,
- updater_id,
- project_id,
- role,
- principal_id
- )
-VALUES
- (
- 4018,
- 101,
- 101,
- 3007,
- 'DEVELOPER',
- 103
- );
-
-ALTER SEQUENCE project_member_id_seq RESTART WITH 4019;
+ALTER SEQUENCE project_member_id_seq RESTART WITH 4011;
diff --git a/store/demo/prod/10070##db.sql b/store/demo/prod/10070##db.sql
index 522ac50010..c468fbc2d2 100644
--- a/store/demo/prod/10070##db.sql
+++ b/store/demo/prod/10070##db.sql
@@ -526,36 +526,6 @@ VALUES
''
);
--- Database for dev environment PostgreSQL instance 6006
-INSERT INTO
- db (
- id,
- creator_id,
- updater_id,
- instance_id,
- project_id,
- name,
- character_set,
- "collation",
- sync_status,
- last_successful_sync_ts,
- schema_version
- )
-VALUES
- (
- 7019,
- 101,
- 101,
- 6006,
- 3001,
- 'postgre_demo',
- 'utf8mb4',
- 'utf8mb4_general_ci',
- 'OK',
- 0,
- ''
- );
-
-- Database for dev environment TiDB instance 6007
INSERT INTO
db (
@@ -646,260 +616,4 @@ VALUES
''
);
--- Databases for tenant mode project.
-INSERT INTO
- db (
- id,
- creator_id,
- updater_id,
- instance_id,
- project_id,
- name,
- character_set,
- "collation",
- sync_status,
- last_successful_sync_ts,
- schema_version
- )
-VALUES
- (
- 7023,
- 101,
- 101,
- 6001,
- 3005,
- 'tenant_db1',
- 'utf8mb4',
- 'utf8mb4_general_ci',
- 'OK',
- 1624558090,
- 'v1'
- );
-INSERT INTO
- db (
- id,
- creator_id,
- updater_id,
- instance_id,
- project_id,
- name,
- character_set,
- "collation",
- sync_status,
- last_successful_sync_ts,
- schema_version
- )
-VALUES
- (
- 7024,
- 101,
- 101,
- 6002,
- 3005,
- 'tenant_db1',
- 'utf8mb4',
- 'utf8mb4_general_ci',
- 'OK',
- 1624558090,
- 'v1'
- );
-INSERT INTO
- db (
- id,
- creator_id,
- updater_id,
- instance_id,
- project_id,
- name,
- character_set,
- "collation",
- sync_status,
- last_successful_sync_ts,
- schema_version
- )
-VALUES
- (
- 7025,
- 101,
- 101,
- 6001,
- 3006,
- 'tenant_db2',
- 'utf8mb4',
- 'utf8mb4_general_ci',
- 'OK',
- 1624558090,
- '2021v1'
- );
-INSERT INTO
- db (
- id,
- creator_id,
- updater_id,
- instance_id,
- project_id,
- name,
- character_set,
- "collation",
- sync_status,
- last_successful_sync_ts,
- schema_version
- )
-VALUES
- (
- 7026,
- 101,
- 101,
- 6002,
- 3006,
- 'tenant_db2',
- 'utf8mb4',
- 'utf8mb4_general_ci',
- 'OK',
- 1624558090,
- '2021v1'
- );
-INSERT INTO
- db (
- id,
- creator_id,
- updater_id,
- instance_id,
- project_id,
- name,
- character_set,
- "collation",
- sync_status,
- last_successful_sync_ts,
- schema_version
- )
-VALUES
- (
- 7027,
- 101,
- 101,
- 6001,
- 3007,
- 'game_dev',
- 'utf8mb4',
- 'utf8mb4_general_ci',
- 'OK',
- 1624558090,
- '2022v0'
- );
-INSERT INTO
- db (
- id,
- creator_id,
- updater_id,
- instance_id,
- project_id,
- name,
- character_set,
- "collation",
- sync_status,
- last_successful_sync_ts,
- schema_version
- )
-VALUES
- (
- 7028,
- 101,
- 101,
- 6003,
- 3007,
- 'game_public_test',
- 'utf8mb4',
- 'utf8mb4_general_ci',
- 'OK',
- 1624558090,
- '2022v0'
- );
-INSERT INTO
- db (
- id,
- creator_id,
- updater_id,
- instance_id,
- project_id,
- name,
- character_set,
- "collation",
- sync_status,
- last_successful_sync_ts,
- schema_version
- )
-VALUES
- (
- 7029,
- 101,
- 101,
- 6004,
- 3007,
- 'game_turtle_rock',
- 'utf8mb4',
- 'utf8mb4_general_ci',
- 'OK',
- 1624558090,
- '2022v0'
- );
-INSERT INTO
- db (
- id,
- creator_id,
- updater_id,
- instance_id,
- project_id,
- name,
- character_set,
- "collation",
- sync_status,
- last_successful_sync_ts,
- schema_version
- )
-VALUES
- (
- 7030,
- 101,
- 101,
- 6004,
- 3007,
- 'game_echo_island',
- 'utf8mb4',
- 'utf8mb4_general_ci',
- 'NOT_FOUND',
- 1624558090,
- '2022v0'
- );
-
--- Database for prod environment archived mysql instance 6010
-INSERT INTO
- db (
- id,
- creator_id,
- updater_id,
- instance_id,
- project_id,
- name,
- character_set,
- "collation",
- sync_status,
- last_successful_sync_ts,
- schema_version
- )
-VALUES
- (
- 7031,
- 101,
- 101,
- 6010,
- 3001,
- '*',
- 'utf8mb4',
- 'utf8mb4_general_ci',
- 'OK',
- 0,
- ''
- );
-
-ALTER SEQUENCE db_id_seq RESTART WITH 7032;
+ALTER SEQUENCE db_id_seq RESTART WITH 7023;
diff --git a/store/demo/prod/10071##db_schema.sql b/store/demo/prod/10071##db_schema.sql
new file mode 100644
index 0000000000..bd9ce466b3
--- /dev/null
+++ b/store/demo/prod/10071##db_schema.sql
@@ -0,0 +1,205 @@
+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/store/demo/prod/10071##tbl.sql b/store/demo/prod/10071##tbl.sql
deleted file mode 100644
index 5111e69d73..0000000000
--- a/store/demo/prod/10071##tbl.sql
+++ /dev/null
@@ -1,677 +0,0 @@
--- Table for database 7002 testdb_dev
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7101,
- 101,
- 101,
- 7002,
- 'tbl1',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 1234,
- 16384,
- 0,
- 0,
- '',
- ''
- );
-
--- Table for database 7006 testdb_integration
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7102,
- 101,
- 101,
- 7006,
- 'tbl1',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 1234,
- 16384,
- 16384,
- 65536,
- '',
- ''
- );
-
--- Table for database 7010 testdb_staging
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7103,
- 101,
- 101,
- 7010,
- 'tbl1',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 12234,
- 65536,
- 16384,
- 655360,
- '',
- ''
- );
-
--- Table for database 7014 testdb_prod
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7104,
- 101,
- 101,
- 7014,
- 'tbl1',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 1234,
- 32768,
- 4096,
- 327680,
- '',
- ''
- );
-
--- Table for database 7003 shop
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7105,
- 101,
- 101,
- 7003,
- 'product',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 1000,
- 4096,
- 0,
- 409600,
- '',
- ''
- );
-
--- Table for database 7007 shop
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7106,
- 101,
- 101,
- 7007,
- 'product',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 1000,
- 4096,
- 1024,
- 0,
- '',
- ''
- );
-
--- Table for database 7004 blog
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7107,
- 101,
- 101,
- 7004,
- 'user',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 1000,
- 4096,
- 1024,
- 204800,
- '',
- ''
- );
-
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7108,
- 101,
- 101,
- 7004,
- 'post',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 1000,
- 8192,
- 1024,
- 204800,
- '',
- ''
- );
-
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7109,
- 101,
- 101,
- 7004,
- 'comment',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 30000,
- 65536,
- 4096,
- 102400,
- '',
- ''
- );
-
--- Table for database 7008 blog
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7110,
- 101,
- 101,
- 7008,
- 'user',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 100,
- 4096,
- 0,
- 204800,
- '',
- ''
- );
-
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7111,
- 101,
- 101,
- 7008,
- 'post',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 300,
- 4096,
- 1024,
- 102400,
- '',
- ''
- );
-
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7112,
- 101,
- 101,
- 7008,
- 'comment',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 2000,
- 65536,
- 2048,
- 40960,
- '',
- ''
- );
-
--- Table for database 7012 blog
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7113,
- 101,
- 101,
- 7012,
- 'user',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 200,
- 4096,
- 1024,
- 81920,
- '',
- ''
- );
-
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7114,
- 101,
- 101,
- 7012,
- 'post',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 500,
- 4096,
- 1024,
- 8192,
- '',
- ''
- );
-
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7115,
- 101,
- 101,
- 7012,
- 'comment',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 4000,
- 65536,
- 65536,
- 20480,
- '',
- ''
- );
-
--- Table for database 7016 blog
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7116,
- 101,
- 101,
- 7016,
- 'user',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 200,
- 4096,
- 1024,
- 0,
- '',
- ''
- );
-
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7117,
- 101,
- 101,
- 7016,
- 'post',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 500,
- 4096,
- 1024,
- 2048,
- '',
- ''
- );
-
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7118,
- 101,
- 101,
- 7016,
- 'comment',
- 'BASE TABLE',
- 'InnoDB',
- 'utf8mb4_general_ci',
- 7000,
- 8192,
- 0,
- 8192,
- '',
- ''
- );
-
-INSERT INTO
- tbl (
- id,
- creator_id,
- updater_id,
- database_id,
- name,
- type,
- ENGINE,
- "collation",
- row_count,
- data_size,
- index_size,
- data_free,
- create_options,
- comment
- )
-VALUES
- (
- 7119,
- 101,
- 101,
- 7019,
- 'blog',
- 'BASE TABLE',
- -- PostgreSQL doesn't use pluggable engines.
- 'ACID',
- 'utf8mb4_general_ci',
- 7000,
- 8192,
- 0,
- 8192,
- '',
- ''
- );
-
-ALTER SEQUENCE tbl_id_seq RESTART WITH 7120;
diff --git a/store/demo/prod/10072##col.sql b/store/demo/prod/10072##col.sql
deleted file mode 100644
index b75f8821cb..0000000000
--- a/store/demo/prod/10072##col.sql
+++ /dev/null
@@ -1,1801 +0,0 @@
--- Column for database 7002 testdb_dev, table 7101 tbl1
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7201,
- 101,
- 101,
- 7002,
- 7101,
- 'col1',
- 1,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- 'I am a comment'
- );
-
--- Column for database 7006 testdb_integration, table 7102 tbl1
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7202,
- 101,
- 101,
- 7006,
- 7102,
- 'col1',
- 1,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- 'I am a comment'
- );
-
--- Column for database 7010 testdb_staging, table 7103 tbl1
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7203,
- 101,
- 101,
- 7010,
- 7103,
- 'col1',
- 1,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- 'I am a comment'
- );
-
--- Column for database 7014 testdb_prod, table 7104 tbl1
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7204,
- 101,
- 101,
- 7014,
- 7104,
- 'col1',
- 1,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- 'I am a comment'
- );
-
--- Column for database 7003 shop, table 7105 product
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7205,
- 101,
- 101,
- 7003,
- 7105,
- 'id',
- 1,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7206,
- 101,
- 101,
- 7003,
- 7105,
- 'name',
- 2,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7207,
- 101,
- 101,
- 7003,
- 7105,
- 'description',
- 3,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
--- Column for database 7007 shop, table 7106 product
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7208,
- 101,
- 101,
- 7007,
- 7106,
- 'id',
- 1,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7209,
- 101,
- 101,
- 7007,
- 7106,
- 'name',
- 2,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7210,
- 101,
- 101,
- 7007,
- 7106,
- 'description',
- 3,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
--- Column for database 7004 blog, table 7107 user
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7211,
- 101,
- 101,
- 7004,
- 7107,
- 'id',
- 1,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7212,
- 101,
- 101,
- 7004,
- 7107,
- 'name',
- 2,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7213,
- 101,
- 101,
- 7004,
- 7107,
- 'email',
- 3,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
--- Column for database 7004 blog, table 7108 post
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7214,
- 101,
- 101,
- 7004,
- 7108,
- 'id',
- 1,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7215,
- 101,
- 101,
- 7004,
- 7108,
- 'name',
- 2,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7216,
- 101,
- 101,
- 7004,
- 7108,
- 'content',
- 3,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7217,
- 101,
- 101,
- 7004,
- 7108,
- 'author_id',
- 4,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
--- Column for database 7004 blog, table 7109 comment
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7218,
- 101,
- 101,
- 7004,
- 7109,
- 'id',
- 1,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7219,
- 101,
- 101,
- 7004,
- 7109,
- 'content',
- 2,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7220,
- 101,
- 101,
- 7004,
- 7109,
- 'post_id',
- 3,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7221,
- 101,
- 101,
- 7004,
- 7109,
- 'author_id',
- 4,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
--- Column for database 7008 blog, table 7110 user
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7222,
- 101,
- 101,
- 7008,
- 7110,
- 'id',
- 1,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7223,
- 101,
- 101,
- 7008,
- 7110,
- 'name',
- 2,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7224,
- 101,
- 101,
- 7008,
- 7110,
- 'email',
- 3,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
--- Column for database 7008 blog, table 7111 post
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7225,
- 101,
- 101,
- 7008,
- 7111,
- 'id',
- 1,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7226,
- 101,
- 101,
- 7008,
- 7111,
- 'name',
- 2,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7227,
- 101,
- 101,
- 7008,
- 7111,
- 'content',
- 3,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7228,
- 101,
- 101,
- 7008,
- 7111,
- 'author_id',
- 4,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
--- Column for database 7008 blog, table 7112 comment
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7229,
- 101,
- 101,
- 7008,
- 7112,
- 'id',
- 1,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7230,
- 101,
- 101,
- 7008,
- 7112,
- 'content',
- 2,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7231,
- 101,
- 101,
- 7008,
- 7112,
- 'post_id',
- 3,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7232,
- 101,
- 101,
- 7008,
- 7112,
- 'author_id',
- 4,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
--- Column for database 7012 blog, table 7113 user
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7233,
- 101,
- 101,
- 7012,
- 7113,
- 'id',
- 1,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7234,
- 101,
- 101,
- 7012,
- 7113,
- 'name',
- 2,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7235,
- 101,
- 101,
- 7012,
- 7113,
- 'email',
- 3,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
--- Column for database 7012 blog, table 7114 post
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7236,
- 101,
- 101,
- 7012,
- 7114,
- 'id',
- 1,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7237,
- 101,
- 101,
- 7012,
- 7114,
- 'name',
- 2,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7238,
- 101,
- 101,
- 7012,
- 7114,
- 'content',
- 3,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7239,
- 101,
- 101,
- 7012,
- 7114,
- 'author_id',
- 4,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
--- Column for database 7012 blog, table 7115 comment
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7240,
- 101,
- 101,
- 7012,
- 7115,
- 'id',
- 1,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7241,
- 101,
- 101,
- 7012,
- 7115,
- 'content',
- 2,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7242,
- 101,
- 101,
- 7012,
- 7115,
- 'post_id',
- 3,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7243,
- 101,
- 101,
- 7012,
- 7115,
- 'author_id',
- 4,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
--- Column for database 7016 blog, table 7116 user
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7244,
- 101,
- 101,
- 7016,
- 7116,
- 'id',
- 1,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7245,
- 101,
- 101,
- 7016,
- 7116,
- 'name',
- 2,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7246,
- 101,
- 101,
- 7016,
- 7116,
- 'email',
- 3,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
--- Column for database 7008 blog, table 7117 post
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7247,
- 101,
- 101,
- 7016,
- 7117,
- 'id',
- 1,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7248,
- 101,
- 101,
- 7016,
- 7117,
- 'name',
- 2,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7249,
- 101,
- 101,
- 7016,
- 7117,
- 'content',
- 3,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7250,
- 101,
- 101,
- 7016,
- 7117,
- 'author_id',
- 4,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
--- Column for database 7016 blog, table 7118 comment
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7251,
- 101,
- 101,
- 7016,
- 7118,
- 'id',
- 1,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7252,
- 101,
- 101,
- 7016,
- 7118,
- 'content',
- 2,
- NULL,
- false,
- 'text',
- 'utf8mb4',
- 'utf8mb4_0900_ai_ci',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7253,
- 101,
- 101,
- 7016,
- 7118,
- 'post_id',
- 3,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-INSERT INTO
- col (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- position,
- "default",
- nullable,
- type,
- character_set,
- "collation",
- comment
- )
-VALUES
- (
- 7254,
- 101,
- 101,
- 7016,
- 7118,
- 'author_id',
- 4,
- NULL,
- false,
- 'int',
- '',
- '',
- ''
- );
-
-ALTER SEQUENCE col_id_seq RESTART WITH 7255;
diff --git a/store/demo/prod/10073##idx.sql b/store/demo/prod/10073##idx.sql
deleted file mode 100644
index 51177fb71d..0000000000
--- a/store/demo/prod/10073##idx.sql
+++ /dev/null
@@ -1,613 +0,0 @@
--- Index for database 7002 testdb_dev, table 7101 tbl1
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7301,
- 101,
- 101,
- 7002,
- 7101,
- 'idx_col1',
- 'col1',
- 1,
- 'BTREE',
- false,
- false,
- true,
- ''
- );
-
--- Index for database 7006 testdb_dev, table 7102 tbl1
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7302,
- 101,
- 101,
- 7006,
- 7102,
- 'idx_col1',
- 'col1',
- 1,
- 'BTREE',
- false,
- false,
- true,
- ''
- );
-
--- Index for database 7010 testdb_dev, table 7103 tbl1
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7303,
- 101,
- 101,
- 7010,
- 7103,
- 'idx_col1',
- 'col1',
- 1,
- 'BTREE',
- true,
- false,
- true,
- ''
- );
-
--- Index for database 7014 testdb_dev, table 7104 tbl1
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7304,
- 101,
- 101,
- 7014,
- 7104,
- 'idx_col1',
- 'col1',
- 1,
- 'BTREE',
- true,
- false,
- true,
- ''
- );
-
--- Index for database 7003 shop, table 7105 product
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7305,
- 101,
- 101,
- 7003,
- 7105,
- 'PRIMARY',
- 'id',
- 1,
- 'BTREE',
- true,
- true,
- true,
- ''
- );
-
--- Index for database 7007 shop, table 7106 product
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7306,
- 101,
- 101,
- 7007,
- 7106,
- 'PRIMARY',
- 'id',
- 1,
- 'BTREE',
- true,
- true,
- true,
- ''
- );
-
--- Index for database 7004 blog, table 7107 user
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7307,
- 101,
- 101,
- 7004,
- 7107,
- 'PRIMARY',
- 'id',
- 1,
- 'BTREE',
- true,
- true,
- true,
- ''
- );
-
--- Index for database 7004 blog, table 7108 post
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7308,
- 101,
- 101,
- 7004,
- 7108,
- 'PRIMARY',
- 'id',
- 1,
- 'BTREE',
- true,
- true,
- true,
- ''
- );
-
--- Index for database 7004 blog, table 7109 comment
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7309,
- 101,
- 101,
- 7004,
- 7109,
- 'PRIMARY',
- 'id',
- 1,
- 'BTREE',
- true,
- true,
- true,
- ''
- );
-
--- Index for database 7008 blog, table 7110 user
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7310,
- 101,
- 101,
- 7008,
- 7110,
- 'PRIMARY',
- 'id',
- 1,
- 'BTREE',
- true,
- true,
- true,
- ''
- );
-
--- Index for database 7008 blog, table 7111 post
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7311,
- 101,
- 101,
- 7008,
- 7111,
- 'PRIMARY',
- 'id',
- 1,
- 'BTREE',
- true,
- true,
- true,
- ''
- );
-
--- Index for database 7008 blog, table 7112 comment
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7312,
- 101,
- 101,
- 7008,
- 7112,
- 'PRIMARY',
- 'id',
- 1,
- 'BTREE',
- true,
- true,
- true,
- ''
- );
-
--- Index for database 7012 blog, table 7113 user
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7313,
- 101,
- 101,
- 7012,
- 7113,
- 'PRIMARY',
- 'id',
- 1,
- 'BTREE',
- true,
- true,
- true,
- ''
- );
-
--- Index for database 7012 blog, table 7114 post
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7314,
- 101,
- 101,
- 7012,
- 7114,
- 'PRIMARY',
- 'id',
- 1,
- 'BTREE',
- true,
- true,
- true,
- ''
- );
-
--- Index for database 7012 blog, table 7115 comment
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7315,
- 101,
- 101,
- 7012,
- 7115,
- 'PRIMARY',
- 'id',
- 1,
- 'BTREE',
- true,
- true,
- true,
- ''
- );
-
--- Index for database 7016 blog, table 7116 user
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7316,
- 101,
- 101,
- 7016,
- 7116,
- 'PRIMARY',
- 'id',
- 1,
- 'BTREE',
- true,
- true,
- true,
- ''
- );
-
--- Index for database 7016 blog, table 7117 post
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7317,
- 101,
- 101,
- 7016,
- 7117,
- 'PRIMARY',
- 'id',
- 1,
- 'BTREE',
- true,
- true,
- true,
- ''
- );
-
--- Index for database 7016 blog, table 7118 comment
-INSERT INTO
- idx (
- id,
- creator_id,
- updater_id,
- database_id,
- table_id,
- name,
- expression,
- position,
- type,
- "unique",
- "primary",
- visible,
- comment
- )
-VALUES
- (
- 7318,
- 101,
- 101,
- 7016,
- 7118,
- 'PRIMARY',
- 'id',
- 1,
- 'BTREE',
- true,
- true,
- true,
- ''
- );
-
-ALTER SEQUENCE idx_id_seq RESTART WITH 7319;
diff --git a/store/demo/prod/10080##data_source.sql b/store/demo/prod/10080##data_source.sql
index b01490769f..a8f0e35f51 100644
--- a/store/demo/prod/10080##data_source.sql
+++ b/store/demo/prod/10080##data_source.sql
@@ -223,29 +223,4 @@ VALUES
''
);
-INSERT INTO
- data_source (
- id,
- creator_id,
- updater_id,
- instance_id,
- database_id,
- name,
- TYPE,
- username,
- PASSWORD
- )
-VALUES
- (
- 8010,
- 1,
- 1,
- 6010,
- 7031,
- 'Admin data source',
- 'ADMIN',
- 'admin',
- 'Prod12345'
- );
-
-ALTER SEQUENCE data_source_id_seq RESTART WITH 8011;
+ALTER SEQUENCE data_source_id_seq RESTART WITH 8010;
diff --git a/store/demo/prod/10180##repository.sql b/store/demo/prod/10180##repository.sql
index 99d4daaa9f..33d717aa5c 100644
--- a/store/demo/prod/10180##repository.sql
+++ b/store/demo/prod/10180##repository.sql
@@ -101,54 +101,4 @@ VALUES
'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
);
--- 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,
- external_id,
- external_webhook_id,
- webhook_url_host,
- webhook_endpoint_id,
- webhook_secret_token,
- access_token,
- expires_ts,
- refresh_token
- )
-VALUES
- (
- 18003,
- 101,
- 101,
- 17001,
- 3005,
- 'Tenant',
- 'bytebase-demo/tenant',
- 'http://gitlab.bytebase.com/bytebase-demo/tenant',
- 'master',
- 'bytebase',
- '{{DB_NAME}}##{{VERSION}}##{{TYPE}}##{{DESCRIPTION}}.sql',
- '.{{DB_NAME}}##LATEST.sql',
- -- Refers to the bytebase-demo/tenant
- '15',
- -- Refers to the webhook in bytebase-demo/tenant
- '62',
- 'https://demo.bytebase.com',
- 'e48bf625-7f58-4d6b-a5be-b97af313d7ea',
- 'xxxxxxxxxxxxxxxx',
- 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
- 0,
- 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
- );
-
-ALTER SEQUENCE repository_id_seq RESTART WITH 18004;
+ALTER SEQUENCE repository_id_seq RESTART WITH 18002;
diff --git a/store/demo/prod/10200##label.sql b/store/demo/prod/10200##label.sql
deleted file mode 100644
index 1c04b729da..0000000000
--- a/store/demo/prod/10200##label.sql
+++ /dev/null
@@ -1,401 +0,0 @@
--- Label keys.
-INSERT INTO
- label_key (
- id,
- creator_id,
- updater_id,
- key
- )
-VALUES
- (
- 20001,
- 1,
- 1,
- 'bb.location'
- );
-
-INSERT INTO
- label_key (
- id,
- creator_id,
- updater_id,
- key
- )
-VALUES
- (
- 20002,
- 1,
- 1,
- 'bb.tenant'
- );
-
-ALTER SEQUENCE label_key_id_seq RESTART WITH 20003;
-
--- Label values.
-INSERT INTO
- label_value (
- id,
- creator_id,
- updater_id,
- key,
- value
- )
-VALUES
- (
- 20010,
- 1,
- 1,
- 'bb.location',
- 'earth'
- );
-
-INSERT INTO
- label_value (
- id,
- creator_id,
- updater_id,
- key,
- value
- )
-VALUES
- (
- 20011,
- 1,
- 1,
- 'bb.tenant',
- 'bytebase'
- );
-
-INSERT INTO
- label_value (
- id,
- creator_id,
- updater_id,
- key,
- value
- )
-VALUES
- (
- 20012,
- 1,
- 1,
- 'bb.location',
- 'east'
- );
-
-INSERT INTO
- label_value (
- id,
- creator_id,
- updater_id,
- key,
- value
- )
-VALUES
- (
- 20013,
- 1,
- 1,
- 'bb.location',
- 'west'
- );
-
-INSERT INTO
- label_value (
- id,
- creator_id,
- updater_id,
- key,
- value
- )
-VALUES
- (
- 20014,
- 1,
- 1,
- 'bb.tenant',
- 'turtle_rock'
- );
-
-INSERT INTO
- label_value (
- id,
- creator_id,
- updater_id,
- key,
- value
- )
-VALUES
- (
- 20015,
- 1,
- 1,
- 'bb.tenant',
- 'echo_island'
- );
-
-INSERT INTO
- label_value (
- id,
- creator_id,
- updater_id,
- key,
- value
- )
-VALUES
- (
- 20016,
- 1,
- 1,
- 'bb.tenant',
- 'public_test'
- );
-
-INSERT INTO
- label_value (
- id,
- creator_id,
- updater_id,
- key,
- value
- )
-VALUES
- (
- 20017,
- 1,
- 1,
- 'bb.tenant',
- 'dev'
- );
-
-ALTER SEQUENCE label_value_id_seq RESTART WITH 20018;
-
--- Database labels for database in tenant mode disabled project.
-INSERT INTO
- db_label (
- id,
- creator_id,
- updater_id,
- database_id,
- key,
- value
- )
-VALUES
- (
- 20021,
- 1,
- 1,
- 7002,
- 'bb.location',
- 'earth'
- );
-
-INSERT INTO
- db_label (
- id,
- creator_id,
- updater_id,
- database_id,
- key,
- value
- )
-VALUES
- (
- 20022,
- 1,
- 1,
- 7002,
- 'bb.tenant',
- 'bytebase'
- );
-
--- Database labels for database in tenant mode project.
-INSERT INTO
- db_label (
- id,
- creator_id,
- updater_id,
- database_id,
- key,
- value
- )
-VALUES
- (
- 20023,
- 1,
- 1,
- 7021,
- 'bb.location',
- 'earth'
- );
-
-INSERT INTO
- db_label (
- id,
- creator_id,
- updater_id,
- database_id,
- key,
- value
- )
-VALUES
- (
- 20024,
- 1,
- 1,
- 7022,
- 'bb.tenant',
- 'bytebase'
- );
-INSERT INTO
- db_label (
- id,
- creator_id,
- updater_id,
- database_id,
- key,
- value
- )
-VALUES
- (
- 20025,
- 1,
- 1,
- 7023,
- 'bb.location',
- 'earth'
- );
-
-INSERT INTO
- db_label (
- id,
- creator_id,
- updater_id,
- database_id,
- key,
- value
- )
-VALUES
- (
- 20026,
- 1,
- 1,
- 7024,
- 'bb.tenant',
- 'bytebase'
- );
-INSERT INTO
- db_label (
- id,
- creator_id,
- updater_id,
- database_id,
- key,
- value
- )
-VALUES
- (
- 20027,
- 1,
- 1,
- 7027,
- 'bb.tenant',
- 'dev'
- );
-
-INSERT INTO
- db_label (
- id,
- creator_id,
- updater_id,
- database_id,
- key,
- value
- )
-VALUES
- (
- 20028,
- 1,
- 1,
- 7028,
- 'bb.tenant',
- 'public_test'
- );
-
-INSERT INTO
- db_label (
- id,
- creator_id,
- updater_id,
- database_id,
- key,
- value
- )
-VALUES
- (
- 20029,
- 1,
- 1,
- 7029,
- 'bb.tenant',
- 'turtle_rock'
- );
-
-INSERT INTO
- db_label (
- id,
- creator_id,
- updater_id,
- database_id,
- key,
- value
- )
-VALUES
- (
- 20030,
- 1,
- 1,
- 7029,
- 'bb.location',
- 'east'
- );
-
-INSERT INTO
- db_label (
- id,
- creator_id,
- updater_id,
- database_id,
- key,
- value
- )
-VALUES
- (
- 20031,
- 1,
- 1,
- 7030,
- 'bb.tenant',
- 'echo_island'
- );
-
-INSERT INTO
- db_label (
- id,
- creator_id,
- updater_id,
- database_id,
- key,
- value
- )
-VALUES
- (
- 20032,
- 1,
- 1,
- 7030,
- 'bb.location',
- 'west'
- );
-
-ALTER SEQUENCE db_label_id_seq RESTART WITH 20033;
diff --git a/store/demo/prod/10210##deployment_config.sql b/store/demo/prod/10210##deployment_config.sql
deleted file mode 100644
index 0731459e9f..0000000000
--- a/store/demo/prod/10210##deployment_config.sql
+++ /dev/null
@@ -1,60 +0,0 @@
--- Deployment config with regional deployments for tenant mode project.
-INSERT INTO
- deployment_config (
- id,
- creator_id,
- updater_id,
- project_id,
- name,
- config
- )
-VALUES
- (
- 21001,
- 101,
- 101,
- 3005,
- 'regional-1',
- '{"deployments":[{"name":"Dev Stage","spec":{"selector":{"matchExpressions":[{"key":"bb.environment","operator":"In","values":["Dev"]},{"key":"bb.location","operator":"In","values":["earth"]}]}}},{"name":"Integration Stage","spec":{"selector":{"matchExpressions":[{"key":"bb.environment","operator":"In","values":["Integration"]},{"key":"bb.tenant","operator":"Exists"}]}}}]}'
- );
-
-INSERT INTO
- deployment_config (
- id,
- creator_id,
- updater_id,
- project_id,
- name,
- config
- )
-VALUES
- (
- 21002,
- 101,
- 101,
- 3006,
- 'regional-2',
- '{"deployments":[{"name":"Dev Stage","spec":{"selector":{"matchExpressions":[{"key":"bb.environment","operator":"In","values":["Dev"]},{"key":"bb.location","operator":"In","values":["earth"]}]}}},{"name":"Integration Stage","spec":{"selector":{"matchExpressions":[{"key":"bb.environment","operator":"In","values":["Integration"]},{"key":"bb.tenant","operator":"Exists"}]}}}]}'
- );
-
-
-INSERT INTO
- deployment_config (
- id,
- creator_id,
- updater_id,
- project_id,
- name,
- config
- )
-VALUES
- (
- 21003,
- 101,
- 101,
- 3007,
- 'db-pattern',
- '{"deployments":[{"name":"Dev Stage","spec":{"selector":{"matchExpressions":[{"key":"bb.environment","operator":"In","values":["Dev"]},{"key":"bb.tenant","operator":"In","values":["dev"]}]}}},{"name":"PTR Stage","spec":{"selector":{"matchExpressions":[{"key":"bb.environment","operator":"In","values":["Staging"]},{"key":"bb.tenant","operator":"Exists"}]}}},{"name":"Release Stage","spec":{"selector":{"matchExpressions":[{"key":"bb.environment","operator":"In","values":["Prod"]},{"key":"bb.tenant","operator":"Exists"}]}}}]}'
- );
-
-ALTER SEQUENCE deployment_config_id_seq RESTART WITH 21004;
diff --git a/store/demo/prod/10220##sheet.sql b/store/demo/prod/10220##sheet.sql
deleted file mode 100644
index cd3cbf7ee7..0000000000
--- a/store/demo/prod/10220##sheet.sql
+++ /dev/null
@@ -1,89 +0,0 @@
-INSERT INTO
- sheet (
- id,
- creator_id,
- updater_id,
- project_id,
- database_id,
- name,
- statement,
- visibility
- )
-VALUES
- (
- 22001,
- 101,
- 101,
- 3001,
- 7019,
- 'My test cases',
- 'SELECT * FROM test_case',
- 'PRIVATE'
- );
-
-INSERT INTO
- sheet (
- id,
- row_status,
- creator_id,
- updater_id,
- project_id,
- name,
- statement,
- visibility
- )
-VALUES
- (
- 22002,
- 'ARCHIVED',
- 101,
- 101,
- 3002,
- 'My starred items',
- 'SELECT * FROM item WHERE starred=true',
- 'PRIVATE'
- );
-
-INSERT INTO
- sheet (
- id,
- creator_id,
- updater_id,
- project_id,
- name,
- statement,
- visibility
- )
-VALUES
- (
- 22003,
- 102,
- 102,
- 3002,
- 'All coupon of our shop',
- 'SELECT * FROM coupon WHERE shop_id=101',
- 'PROJECT'
- );
-
-INSERT INTO
- sheet (
- id,
- creator_id,
- updater_id,
- project_id,
- name,
- statement,
- visibility
- )
-VALUES
- (
- 22004,
- 103,
- 103,
- 3003,
- 'All blogs from Alex',
- 'SELECT * FROM blog WHERE author="Alex"',
- 'PUBLIC'
- );
-
-ALTER SEQUENCE sheet_id_seq RESTART WITH 22005;
diff --git a/store/demo/prod/10221##sheet_organizer.sql b/store/demo/prod/10221##sheet_organizer.sql
deleted file mode 100644
index f81eba639c..0000000000
--- a/store/demo/prod/10221##sheet_organizer.sql
+++ /dev/null
@@ -1,69 +0,0 @@
-INSERT INTO
- sheet_organizer (
- id,
- sheet_id,
- principal_id,
- starred,
- pinned
- )
-VALUES
- (
- 22101,
- 22001,
- 101,
- false,
- false
- );
-
-INSERT INTO
- sheet_organizer (
- id,
- sheet_id,
- principal_id,
- starred,
- pinned
- )
-VALUES
- (
- 22102,
- 22002,
- 101,
- true,
- false
- );
-
-INSERT INTO
- sheet_organizer (
- id,
- sheet_id,
- principal_id,
- starred,
- pinned
- )
-VALUES
- (
- 22103,
- 22003,
- 102,
- false,
- true
- );
-
-INSERT INTO
- sheet_organizer (
- id,
- sheet_id,
- principal_id,
- starred,
- pinned
- )
-VALUES
- (
- 22104,
- 22004,
- 102,
- true,
- false
- );
-
-ALTER SEQUENCE sheet_id_seq RESTART WITH 22105;