1.0.38
This commit is contained in:
177 files changed
+21182
-1042
No files matched your search
@@ -0,0 +1,39 @@
|
||||
CREATE TABLE IF NOT EXISTS `backup_configs` (
|
||||
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
||||
`type` text DEFAULT 'container' NOT NULL,
|
||||
`target_name` text NOT NULL,
|
||||
`environment_id` integer,
|
||||
`destination_id` integer NOT NULL,
|
||||
`enabled` integer DEFAULT true,
|
||||
`all_volumes` integer DEFAULT true,
|
||||
`selected_volumes` text,
|
||||
`stop_before_backup` integer DEFAULT false,
|
||||
`schedule` text,
|
||||
`retention` text,
|
||||
`options` text,
|
||||
`tags` text,
|
||||
`last_backup_at` text,
|
||||
`last_backup_status` text,
|
||||
`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,
|
||||
FOREIGN KEY (`destination_id`) REFERENCES `backup_destinations`(`id`) ON UPDATE no action ON DELETE cascade
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE TABLE IF NOT EXISTS `backup_destinations` (
|
||||
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
||||
`name` text NOT NULL,
|
||||
`repository` text NOT NULL,
|
||||
`password` text NOT NULL,
|
||||
`env_vars` text,
|
||||
`flags` text,
|
||||
`host_path` text,
|
||||
`policies` text,
|
||||
`last_test_at` text,
|
||||
`last_test_status` text,
|
||||
`last_test_error` text,
|
||||
`created_at` text DEFAULT CURRENT_TIMESTAMP,
|
||||
`updated_at` text DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE UNIQUE INDEX IF NOT EXISTS `backup_destinations_name_unique` ON `backup_destinations` (`name`);
|
||||
@@ -64,6 +64,13 @@
|
||||
"when": 1781620376161,
|
||||
"tag": "0008_add_template_sources",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 9,
|
||||
"version": "6",
|
||||
"when": 1781620377161,
|
||||
"tag": "0009_add_backup_tables",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user