mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
feat(cloud-storage): add cloud storage destination and backup tables
- Created new SQL tables for managing cloud storage destinations and backups, including necessary fields and constraints. - Updated the journal and snapshot metadata to reflect the addition of these new tables for version 0098.
This commit is contained in:
33
apps/dokploy/drizzle/0098_majestic_white_queen.sql
Normal file
33
apps/dokploy/drizzle/0098_majestic_white_queen.sql
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
CREATE TABLE "cloud_storage_destination" (
|
||||||
|
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
||||||
|
"name" text NOT NULL,
|
||||||
|
"provider" text NOT NULL,
|
||||||
|
"username" text,
|
||||||
|
"password" text,
|
||||||
|
"host" text,
|
||||||
|
"port" text,
|
||||||
|
"config" text,
|
||||||
|
"organization_id" text NOT NULL,
|
||||||
|
"created_at" timestamp DEFAULT now(),
|
||||||
|
"updated_at" timestamp DEFAULT now()
|
||||||
|
);
|
||||||
|
--> statement-breakpoint
|
||||||
|
CREATE TABLE "cloud_storage_backup" (
|
||||||
|
"id" text PRIMARY KEY NOT NULL,
|
||||||
|
"organization_id" text NOT NULL,
|
||||||
|
"cloud_storage_destination_id" uuid NOT NULL,
|
||||||
|
"schedule" text NOT NULL,
|
||||||
|
"enabled" boolean DEFAULT true NOT NULL,
|
||||||
|
"database_type" text NOT NULL,
|
||||||
|
"prefix" text,
|
||||||
|
"database" text,
|
||||||
|
"postgres_id" text,
|
||||||
|
"mysql_id" text,
|
||||||
|
"mariadb_id" text,
|
||||||
|
"mongo_id" text,
|
||||||
|
"keep_latest_count" integer,
|
||||||
|
"created_at" timestamp DEFAULT now() NOT NULL,
|
||||||
|
"updated_at" timestamp DEFAULT now() NOT NULL
|
||||||
|
);
|
||||||
|
--> statement-breakpoint
|
||||||
|
ALTER TABLE "cloud_storage_backup" ADD CONSTRAINT "cloud_storage_backup_cloud_storage_destination_id_cloud_storage_destination_id_fk" FOREIGN KEY ("cloud_storage_destination_id") REFERENCES "public"."cloud_storage_destination"("id") ON DELETE no action ON UPDATE no action;
|
||||||
6028
apps/dokploy/drizzle/meta/0098_snapshot.json
Normal file
6028
apps/dokploy/drizzle/meta/0098_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -687,6 +687,13 @@
|
|||||||
"when": 1750567641441,
|
"when": 1750567641441,
|
||||||
"tag": "0097_hard_lizard",
|
"tag": "0097_hard_lizard",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 98,
|
||||||
|
"version": "7",
|
||||||
|
"when": 1750572067549,
|
||||||
|
"tag": "0098_majestic_white_queen",
|
||||||
|
"breakpoints": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user