Skip to content

Commit

Permalink
chore: change script
Browse files Browse the repository at this point in the history
  • Loading branch information
tianzhou committed Apr 1, 2024
1 parent 176710a commit f3bc6d8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions migrations/1001_create_user.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP TABLE "user";
7 changes: 7 additions & 0 deletions migrations/1001_create_user.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CREATE TABLE "user" (
"id" SERIAL NOT NULL,
"firstName" character varying NOT NULL,
"lastName" character varying NOT NULL,
"age" integer NOT NULL,
CONSTRAINT "PK_cace4a159ff9f2512dd42373760" PRIMARY KEY ("id")
);

Check failure on line 7 in migrations/1001_create_user.up.sql

View workflow job for this annotation

GitHub Actions / SQL Review

Table already exists (607)

The table "user" already exists in the schema "public". https://www.bytebase.com/docs/reference/error-code/advisor#607
1 change: 1 addition & 0 deletions migrations/1002_create_post.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP TABLE post;
5 changes: 5 additions & 0 deletions migrations/1002_create_post.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CREATE TABLE "post" (
"id" SERIAL NOT NULL,
"author" TEXT NOT NULL,
CONSTRAINT "PK_cace4a159ff9f2512dd42373761" PRIMARY KEY ("id")
);

Check failure on line 5 in migrations/1002_create_post.up.sql

View workflow job for this annotation

GitHub Actions / SQL Review

Table already exists (607)

The table "post" already exists in the schema "public". https://www.bytebase.com/docs/reference/error-code/advisor#607

0 comments on commit f3bc6d8

Please sign in to comment.