init
This commit is contained in:
13
backend/drizzle/0001_graceful_sue_storm.sql
Normal file
13
backend/drizzle/0001_graceful_sue_storm.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
PRAGMA foreign_keys=OFF;--> statement-breakpoint
|
||||
CREATE TABLE `__new_tickets` (
|
||||
`id` text PRIMARY KEY NOT NULL,
|
||||
`subject` text NOT NULL,
|
||||
`description` text DEFAULT '' NOT NULL,
|
||||
`status` text DEFAULT 'open' NOT NULL,
|
||||
`createdAt` text NOT NULL
|
||||
);
|
||||
--> statement-breakpoint
|
||||
INSERT INTO `__new_tickets`("id", "subject", "description", "status", "createdAt") SELECT "id", "subject", "description", "status", "createdAt" FROM `tickets`;--> statement-breakpoint
|
||||
DROP TABLE `tickets`;--> statement-breakpoint
|
||||
ALTER TABLE `__new_tickets` RENAME TO `tickets`;--> statement-breakpoint
|
||||
PRAGMA foreign_keys=ON;
|
||||
Reference in New Issue
Block a user