Skip to content

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

Add issue fake data

天舟b4f222478a9b
diff --git a/backend/store/seed/0120_issue.sql b/backend/store/seed/0120_issue.sql
index e69de29bb2..2696dbfffb 100644
--- a/backend/store/seed/0120_issue.sql
+++ b/backend/store/seed/0120_issue.sql
@@ -0,0 +1,34 @@
+INSERT INTO
+ issue (
+ id,
+ creator_id,
+ updater_id,
+ workspace_id,
+ project_id,
+ pipeline_id,
+ name,
+ `status`,
+ `type`,
+ description,
+ assignee_id,
+ subscriber_id_list,
+ `sql`,
+ rollback_sql
+ )
+VALUES
+ (
+ 012001,
+ 1002,
+ 1002,
+ 1,
+ 3001,
+ 9001,
+ 'Hello world!',
+ 'OPEN',
+ 'bb.general',
+ 'Welcome to Bytebase, this is the issue interface where tech leads, developers and DBAs collaborate on database management issues such as: ' || char(10, 10) || ' - Requesting a new database' || char(10) || ' - Creating a table' || char(10) || ' - Creating an index' || char(10) || ' - Adding a column' || char(10) || ' - Troubleshooting performance issue' || char(10, 10) || 'Let ''s bookmark this issue by clicking the star icon on the top of this page.',
+ 1001,
+ '1001,1002,1003,1004',
+ 'SELECT ''Welcome''' || char(10) || 'FROM engineering' || char(10) || 'WHERE role IN (''Tech Lead'', ''Developer'', ''DBA'')' || char(10) || 'AND taste = ''Good'';',
+ ''
+ );
\ No newline at end of file
diff --git a/frontend/src/miragejs/seeds/index.ts b/frontend/src/miragejs/seeds/index.ts
index d497742957..b3dfe0f3d1 100644
--- a/frontend/src/miragejs/seeds/index.ts
+++ b/frontend/src/miragejs/seeds/index.ts
@@ -201,10 +201,10 @@ const workspacesSeeder = (server: any) => {
let issue = server.create("issue", {
type: "bb.general",
- name: "Hello, World!",
+ name: "Hello, World! Demo",
description:
- "Welcome to Bytebase, this is the issue interface where DBAs and developers collaborate on database management issues such as: \n\n - Requesting a new database\n - Creating a table\n - Creating an index\n - Adding a column\n - Troubleshooting performance issue\n\nLet's bookmark this issue by clicking the star icon on the top of this page.",
- sql: "SELECT 'Welcome'\nFROM engineering\nWHERE role IN ('DBA', 'Developer') AND taste = 'Good';",
+ "Welcome to Bytebase, this is the issue interface where leads, developers and DBAs collaborate on database management issues such as: \n\n - Requesting a new database\n - Creating a table\n - Creating an index\n - Adding a column\n - Troubleshooting performance issue\n\nLet's bookmark this issue by clicking the star icon on the top of this page.",
+ sql: "SELECT 'Welcome'\nFROM engineering\nWHERE role IN (''Tech Lead'', ''Developer'', ''DBA'') AND taste = 'Good';",
creatorId: ws1Dev1.id,
updaterId: ws1Dev1.id,
assigneeId: ws1Owner.id,