mirror of
https://github.com/khoaliber/dockhand.git
synced 2026-03-02 13:17:57 +00:00
drizzle config
This commit is contained in:
12
drizzle-pg/0002_add_pending_container_updates.sql
Normal file
12
drizzle-pg/0002_add_pending_container_updates.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
CREATE TABLE "pending_container_updates" (
|
||||
"id" serial PRIMARY KEY NOT NULL,
|
||||
"environment_id" integer NOT NULL,
|
||||
"container_id" text NOT NULL,
|
||||
"container_name" text NOT NULL,
|
||||
"current_image" text NOT NULL,
|
||||
"checked_at" timestamp DEFAULT now(),
|
||||
"created_at" timestamp DEFAULT now(),
|
||||
CONSTRAINT "pending_container_updates_environment_id_container_id_unique" UNIQUE("environment_id","container_id")
|
||||
);
|
||||
--> statement-breakpoint
|
||||
ALTER TABLE "pending_container_updates" ADD CONSTRAINT "pending_container_updates_environment_id_environments_id_fk" FOREIGN KEY ("environment_id") REFERENCES "public"."environments"("id") ON DELETE cascade ON UPDATE no action;
|
||||
Reference in New Issue
Block a user