From e46b7ccad4db812dfc8455b20425469afad61788 Mon Sep 17 00:00:00 2001 From: dujinkim Date: Tue, 13 May 2025 03:07:39 +0000 Subject: (대표님) drizzle-kit migrations and snapshots MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/migrations/0058_low_hitman.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 db/migrations/0058_low_hitman.sql (limited to 'db/migrations/0058_low_hitman.sql') diff --git a/db/migrations/0058_low_hitman.sql b/db/migrations/0058_low_hitman.sql new file mode 100644 index 00000000..db2b860f --- /dev/null +++ b/db/migrations/0058_low_hitman.sql @@ -0,0 +1,10 @@ +CREATE TYPE "public"."work_type" AS ENUM('기장', '전장', '선실', '배관', '철의');--> statement-breakpoint +CREATE TABLE "item_shipbuilding" ( + "id" serial PRIMARY KEY NOT NULL, + "item_id" integer NOT NULL, + "work_type" "work_type" NOT NULL, + "ship_types" text DEFAULT 'A-MAX' NOT NULL +); +--> statement-breakpoint +ALTER TABLE "users" ADD COLUMN "language" varchar(10) DEFAULT 'en';--> statement-breakpoint +ALTER TABLE "item_shipbuilding" ADD CONSTRAINT "item_shipbuilding_item_id_items_id_fk" FOREIGN KEY ("item_id") REFERENCES "public"."items"("id") ON DELETE cascade ON UPDATE no action; \ No newline at end of file -- cgit v1.2.3