mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-18 01:45:17 +00:00
Remove obsolete SQL files and update related metadata for libsql schema changes
This commit is contained in:
@@ -1,49 +0,0 @@
|
|||||||
CREATE TYPE "public"."sqldNode" AS ENUM('primary', 'replica');--> statement-breakpoint
|
|
||||||
CREATE TABLE "libsql" (
|
|
||||||
"libsqlId" text PRIMARY KEY NOT NULL,
|
|
||||||
"name" text NOT NULL,
|
|
||||||
"appName" text NOT NULL,
|
|
||||||
"description" text,
|
|
||||||
"databaseUser" text NOT NULL,
|
|
||||||
"databasePassword" text NOT NULL,
|
|
||||||
"sqldNode" "sqldNode" DEFAULT 'primary' NOT NULL,
|
|
||||||
"sqldPrimaryUrl" text,
|
|
||||||
"enableNamespaces" boolean DEFAULT false NOT NULL,
|
|
||||||
"dockerImage" text NOT NULL,
|
|
||||||
"command" text,
|
|
||||||
"env" text,
|
|
||||||
"memoryReservation" text,
|
|
||||||
"memoryLimit" text,
|
|
||||||
"cpuReservation" text,
|
|
||||||
"cpuLimit" text,
|
|
||||||
"externalPort" integer,
|
|
||||||
"externalGRPCPort" integer,
|
|
||||||
"externalAdminPort" integer,
|
|
||||||
"applicationStatus" "applicationStatus" DEFAULT 'idle' NOT NULL,
|
|
||||||
"healthCheckSwarm" json,
|
|
||||||
"restartPolicySwarm" json,
|
|
||||||
"placementSwarm" json,
|
|
||||||
"updateConfigSwarm" json,
|
|
||||||
"rollbackConfigSwarm" json,
|
|
||||||
"modeSwarm" json,
|
|
||||||
"labelsSwarm" json,
|
|
||||||
"networkSwarm" json,
|
|
||||||
"replicas" integer DEFAULT 1 NOT NULL,
|
|
||||||
"createdAt" text NOT NULL,
|
|
||||||
"environmentId" text NOT NULL,
|
|
||||||
"serverId" text,
|
|
||||||
CONSTRAINT "libsql_appName_unique" UNIQUE("appName")
|
|
||||||
);
|
|
||||||
--> statement-breakpoint
|
|
||||||
ALTER TABLE "mount" ADD COLUMN "libsqlId" text;--> statement-breakpoint
|
|
||||||
ALTER TABLE "volume_backup" ADD COLUMN "libsqlId" text;--> statement-breakpoint
|
|
||||||
ALTER TABLE "libsql" ADD CONSTRAINT "libsql_environmentId_environment_environmentId_fk" FOREIGN KEY ("environmentId") REFERENCES "public"."environment"("environmentId") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
||||||
ALTER TABLE "libsql" ADD CONSTRAINT "libsql_serverId_server_serverId_fk" FOREIGN KEY ("serverId") REFERENCES "public"."server"("serverId") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
||||||
ALTER TABLE "mount" ADD CONSTRAINT "mount_libsqlId_libsql_libsqlId_fk" FOREIGN KEY ("libsqlId") REFERENCES "public"."libsql"("libsqlId") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
||||||
ALTER TABLE "volume_backup" ADD CONSTRAINT "volume_backup_libsqlId_libsql_libsqlId_fk" FOREIGN KEY ("libsqlId") REFERENCES "public"."libsql"("libsqlId") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
||||||
ALTER TABLE "public"."mount" ALTER COLUMN "serviceType" SET DATA TYPE text;--> statement-breakpoint
|
|
||||||
ALTER TABLE "public"."volume_backup" ALTER COLUMN "serviceType" SET DATA TYPE text;--> statement-breakpoint
|
|
||||||
DROP TYPE "public"."serviceType";--> statement-breakpoint
|
|
||||||
CREATE TYPE "public"."serviceType" AS ENUM('application', 'compose', 'libsql', 'mariadb', 'mongo', 'mysql', 'postgres', 'redis');--> statement-breakpoint
|
|
||||||
ALTER TABLE "public"."mount" ALTER COLUMN "serviceType" SET DATA TYPE "public"."serviceType" USING "serviceType"::"public"."serviceType";--> statement-breakpoint
|
|
||||||
ALTER TABLE "public"."volume_backup" ALTER COLUMN "serviceType" SET DATA TYPE "public"."serviceType" USING "serviceType"::"public"."serviceType";
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
ALTER TABLE "libsql" ADD COLUMN "enableBottomlessReplication" boolean DEFAULT false NOT NULL;--> statement-breakpoint
|
|
||||||
ALTER TABLE "libsql" ADD COLUMN "bottomlessReplicationDestinationId" text;--> statement-breakpoint
|
|
||||||
ALTER TABLE "libsql" ADD CONSTRAINT "libsql_bottomlessReplicationDestinationId_destination_destinationId_fk" FOREIGN KEY ("bottomlessReplicationDestinationId") REFERENCES "public"."destination"("destinationId") ON DELETE set null ON UPDATE no action;
|
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -778,20 +778,6 @@
|
|||||||
"when": 1757189541734,
|
"when": 1757189541734,
|
||||||
"tag": "0110_red_psynapse",
|
"tag": "0110_red_psynapse",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
|
||||||
{
|
|
||||||
"idx": 111,
|
|
||||||
"version": "7",
|
|
||||||
"when": 1757764040899,
|
|
||||||
"tag": "0111_opposite_outlaw_kid",
|
|
||||||
"breakpoints": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"idx": 112,
|
|
||||||
"version": "7",
|
|
||||||
"when": 1757841949939,
|
|
||||||
"tag": "0112_mean_cammi",
|
|
||||||
"breakpoints": true
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -3,7 +3,6 @@ import { boolean, integer, json, pgTable, text } from "drizzle-orm/pg-core";
|
|||||||
import { createInsertSchema } from "drizzle-zod";
|
import { createInsertSchema } from "drizzle-zod";
|
||||||
import { nanoid } from "nanoid";
|
import { nanoid } from "nanoid";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
import { backups } from "./backups";
|
|
||||||
import { destinations } from "./destination";
|
import { destinations } from "./destination";
|
||||||
import { environments } from "./environment";
|
import { environments } from "./environment";
|
||||||
import { mounts } from "./mount";
|
import { mounts } from "./mount";
|
||||||
|
|||||||
Reference in New Issue
Block a user