mirror of
https://github.com/khoaliber/dockhand.git
synced 2026-03-02 13:17:57 +00:00
drizzle config
This commit is contained in:
14
drizzle/0001_add_stack_env_vars.sql
Normal file
14
drizzle/0001_add_stack_env_vars.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
CREATE TABLE `stack_environment_variables` (
|
||||
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
||||
`stack_name` text NOT NULL,
|
||||
`environment_id` integer,
|
||||
`key` text NOT NULL,
|
||||
`value` text NOT NULL,
|
||||
`is_secret` integer DEFAULT false,
|
||||
`created_at` text DEFAULT CURRENT_TIMESTAMP,
|
||||
`updated_at` text DEFAULT CURRENT_TIMESTAMP,
|
||||
FOREIGN KEY (`environment_id`) REFERENCES `environments`(`id`) ON UPDATE no action ON DELETE cascade
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE UNIQUE INDEX `stack_environment_variables_stack_name_environment_id_key_unique` ON `stack_environment_variables` (`stack_name`,`environment_id`,`key`);--> statement-breakpoint
|
||||
ALTER TABLE `git_stacks` ADD `env_file_path` text;
|
||||
Reference in New Issue
Block a user