-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: 🐛fix problem in the migration for catalogswriteservice (#106)
Fix #104
- Loading branch information
1 parent
3aa5aa6
commit 3b3af0b
Showing
10 changed files
with
25 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
internal/services/catalogwriteservice/db/migrations/atlas/20230919170700.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
-- Create "products" table | ||
CREATE TABLE "public"."products" ( | ||
"product_id" text NOT NULL, | ||
"id" text NOT NULL, | ||
"name" text NULL, | ||
"description" text NULL, | ||
"price" numeric NULL, | ||
"created_at" timestamptz NULL, | ||
"updated_at" timestamptz NULL, | ||
PRIMARY KEY ("product_id") | ||
"deleted_at" timestamptz NULL, | ||
PRIMARY KEY ("id") | ||
); |
5 changes: 3 additions & 2 deletions
5
...al/services/catalogwriteservice/db/migrations/atlas/goose/00002_create_products_table.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
CREATE TABLE IF NOT EXISTS products | ||
( | ||
product_id uuid PRIMARY KEY DEFAULT uuid_generate_v4(), | ||
id uuid PRIMARY KEY DEFAULT uuid_generate_v4(), | ||
name text, | ||
description text, | ||
price numeric, | ||
created_at timestamp with time zone, | ||
updated_at timestamp with time zone | ||
updated_at timestamp with time zone, | ||
deleted_at timestamp with time zone | ||
); |
5 changes: 3 additions & 2 deletions
5
...services/catalogwriteservice/db/migrations/go-migrate/000002_create_products_table.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
CREATE TABLE IF NOT EXISTS products | ||
( | ||
product_id uuid PRIMARY KEY DEFAULT uuid_generate_v4(), | ||
id uuid PRIMARY KEY DEFAULT uuid_generate_v4(), | ||
name text, | ||
description text, | ||
price numeric, | ||
created_at timestamp with time zone, | ||
updated_at timestamp with time zone | ||
updated_at timestamp with time zone, | ||
deleted_at timestamp with time zone | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters