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/0002_add_pending_container_updates.sql
Normal file
12
drizzle/0002_add_pending_container_updates.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
CREATE TABLE `pending_container_updates` (
|
||||
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
||||
`environment_id` integer NOT NULL,
|
||||
`container_id` text NOT NULL,
|
||||
`container_name` text NOT NULL,
|
||||
`current_image` text NOT NULL,
|
||||
`checked_at` text DEFAULT CURRENT_TIMESTAMP,
|
||||
`created_at` text DEFAULT CURRENT_TIMESTAMP,
|
||||
FOREIGN KEY (`environment_id`) REFERENCES `environments`(`id`) ON UPDATE no action ON DELETE cascade
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE UNIQUE INDEX `pending_container_updates_environment_id_container_id_unique` ON `pending_container_updates` (`environment_id`,`container_id`);
|
||||
Reference in New Issue
Block a user