and so it begins
This commit is contained in:
10
packages/db/migrations/0004_parched_blue_shield.sql
Normal file
10
packages/db/migrations/0004_parched_blue_shield.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
ALTER TABLE "account" ALTER COLUMN "created_at" SET DEFAULT now();--> statement-breakpoint
|
||||
ALTER TABLE "user" ALTER COLUMN "email_verified" SET DEFAULT false;--> statement-breakpoint
|
||||
ALTER TABLE "user" ALTER COLUMN "created_at" SET DEFAULT now();--> statement-breakpoint
|
||||
ALTER TABLE "user" ALTER COLUMN "updated_at" SET DEFAULT now();--> statement-breakpoint
|
||||
ALTER TABLE "user" ALTER COLUMN "banned" SET DEFAULT false;--> statement-breakpoint
|
||||
ALTER TABLE "user" ALTER COLUMN "discount_percent" SET DEFAULT 0;--> statement-breakpoint
|
||||
ALTER TABLE "verification" ALTER COLUMN "created_at" SET DEFAULT now();--> statement-breakpoint
|
||||
ALTER TABLE "verification" ALTER COLUMN "created_at" SET NOT NULL;--> statement-breakpoint
|
||||
ALTER TABLE "verification" ALTER COLUMN "updated_at" SET DEFAULT now();--> statement-breakpoint
|
||||
ALTER TABLE "verification" ALTER COLUMN "updated_at" SET NOT NULL;
|
||||
9
packages/db/migrations/0005_great_doomsday.sql
Normal file
9
packages/db/migrations/0005_great_doomsday.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
CREATE TABLE IF NOT EXISTS "product" (
|
||||
"id" serial PRIMARY KEY NOT NULL,
|
||||
"title" varchar(64) NOT NULL,
|
||||
"description" text NOT NULL,
|
||||
"long_description" text NOT NULL,
|
||||
"price" numeric(12, 2) DEFAULT '0',
|
||||
"created_at" timestamp DEFAULT now(),
|
||||
"updated_at" timestamp DEFAULT now()
|
||||
);
|
||||
1
packages/db/migrations/0006_puzzling_avengers.sql
Normal file
1
packages/db/migrations/0006_puzzling_avengers.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE "product" ADD COLUMN "discount_price" numeric(12, 2) DEFAULT '0';
|
||||
1496
packages/db/migrations/meta/0004_snapshot.json
Normal file
1496
packages/db/migrations/meta/0004_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
1554
packages/db/migrations/meta/0005_snapshot.json
Normal file
1554
packages/db/migrations/meta/0005_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
1561
packages/db/migrations/meta/0006_snapshot.json
Normal file
1561
packages/db/migrations/meta/0006_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -29,6 +29,27 @@
|
||||
"when": 1746375159329,
|
||||
"tag": "0003_unique_stephen_strange",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 4,
|
||||
"version": "7",
|
||||
"when": 1760973109915,
|
||||
"tag": "0004_parched_blue_shield",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 5,
|
||||
"version": "7",
|
||||
"when": 1760975750129,
|
||||
"tag": "0005_great_doomsday",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 6,
|
||||
"version": "7",
|
||||
"when": 1760975763245,
|
||||
"tag": "0006_puzzling_avengers",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user