mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
chore(cloud): add migrations
This commit is contained in:
parent
3ce25e2ac8
commit
172d55311e
25
apps/dokploy/drizzle/0039_many_tiger_shark.sql
Normal file
25
apps/dokploy/drizzle/0039_many_tiger_shark.sql
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
ALTER TABLE "git_provider" DROP CONSTRAINT "git_provider_authId_auth_id_fk";
|
||||||
|
--> statement-breakpoint
|
||||||
|
ALTER TABLE "notification" ADD COLUMN "adminId" text;--> statement-breakpoint
|
||||||
|
ALTER TABLE "ssh-key" ADD COLUMN "privateKey" text DEFAULT '' NOT NULL;--> statement-breakpoint
|
||||||
|
ALTER TABLE "ssh-key" ADD COLUMN "adminId" text;--> statement-breakpoint
|
||||||
|
ALTER TABLE "git_provider" ADD COLUMN "adminId" text;--> statement-breakpoint
|
||||||
|
DO $$ BEGIN
|
||||||
|
ALTER TABLE "notification" ADD CONSTRAINT "notification_adminId_admin_adminId_fk" FOREIGN KEY ("adminId") REFERENCES "public"."admin"("adminId") ON DELETE cascade ON UPDATE no action;
|
||||||
|
EXCEPTION
|
||||||
|
WHEN duplicate_object THEN null;
|
||||||
|
END $$;
|
||||||
|
--> statement-breakpoint
|
||||||
|
DO $$ BEGIN
|
||||||
|
ALTER TABLE "ssh-key" ADD CONSTRAINT "ssh-key_adminId_admin_adminId_fk" FOREIGN KEY ("adminId") REFERENCES "public"."admin"("adminId") ON DELETE cascade ON UPDATE no action;
|
||||||
|
EXCEPTION
|
||||||
|
WHEN duplicate_object THEN null;
|
||||||
|
END $$;
|
||||||
|
--> statement-breakpoint
|
||||||
|
DO $$ BEGIN
|
||||||
|
ALTER TABLE "git_provider" ADD CONSTRAINT "git_provider_adminId_admin_adminId_fk" FOREIGN KEY ("adminId") REFERENCES "public"."admin"("adminId") ON DELETE cascade ON UPDATE no action;
|
||||||
|
EXCEPTION
|
||||||
|
WHEN duplicate_object THEN null;
|
||||||
|
END $$;
|
||||||
|
--> statement-breakpoint
|
||||||
|
ALTER TABLE "git_provider" DROP COLUMN IF EXISTS "authId";
|
3870
apps/dokploy/drizzle/meta/0039_snapshot.json
Normal file
3870
apps/dokploy/drizzle/meta/0039_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,279 +1,286 @@
|
|||||||
{
|
{
|
||||||
"version": "5",
|
"version": "5",
|
||||||
"dialect": "pg",
|
"dialect": "pg",
|
||||||
"entries": [
|
"entries": [
|
||||||
{
|
{
|
||||||
"idx": 0,
|
"idx": 0,
|
||||||
"version": "5",
|
"version": "5",
|
||||||
"when": 1713262741218,
|
"when": 1713262741218,
|
||||||
"tag": "0000_reflective_puck",
|
"tag": "0000_reflective_puck",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 1,
|
"idx": 1,
|
||||||
"version": "5",
|
"version": "5",
|
||||||
"when": 1713761637676,
|
"when": 1713761637676,
|
||||||
"tag": "0001_striped_tattoo",
|
"tag": "0001_striped_tattoo",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 2,
|
"idx": 2,
|
||||||
"version": "5",
|
"version": "5",
|
||||||
"when": 1713763492341,
|
"when": 1713763492341,
|
||||||
"tag": "0002_ambiguous_carlie_cooper",
|
"tag": "0002_ambiguous_carlie_cooper",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 3,
|
"idx": 3,
|
||||||
"version": "5",
|
"version": "5",
|
||||||
"when": 1713947141424,
|
"when": 1713947141424,
|
||||||
"tag": "0003_square_lightspeed",
|
"tag": "0003_square_lightspeed",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 4,
|
"idx": 4,
|
||||||
"version": "5",
|
"version": "5",
|
||||||
"when": 1714004732716,
|
"when": 1714004732716,
|
||||||
"tag": "0004_nice_tenebrous",
|
"tag": "0004_nice_tenebrous",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 5,
|
"idx": 5,
|
||||||
"version": "5",
|
"version": "5",
|
||||||
"when": 1715551130605,
|
"when": 1715551130605,
|
||||||
"tag": "0005_cute_terror",
|
"tag": "0005_cute_terror",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 6,
|
"idx": 6,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1715563165991,
|
"when": 1715563165991,
|
||||||
"tag": "0006_oval_jimmy_woo",
|
"tag": "0006_oval_jimmy_woo",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 7,
|
"idx": 7,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1715563497100,
|
"when": 1715563497100,
|
||||||
"tag": "0007_cute_guardsmen",
|
"tag": "0007_cute_guardsmen",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 8,
|
"idx": 8,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1715564143641,
|
"when": 1715564143641,
|
||||||
"tag": "0008_lazy_sage",
|
"tag": "0008_lazy_sage",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 9,
|
"idx": 9,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1715564774423,
|
"when": 1715564774423,
|
||||||
"tag": "0009_majestic_spencer_smythe",
|
"tag": "0009_majestic_spencer_smythe",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 10,
|
"idx": 10,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1715574037832,
|
"when": 1715574037832,
|
||||||
"tag": "0010_lean_black_widow",
|
"tag": "0010_lean_black_widow",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 11,
|
"idx": 11,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1715574230599,
|
"when": 1715574230599,
|
||||||
"tag": "0011_petite_calypso",
|
"tag": "0011_petite_calypso",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 12,
|
"idx": 12,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1716015716708,
|
"when": 1716015716708,
|
||||||
"tag": "0012_chubby_umar",
|
"tag": "0012_chubby_umar",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 13,
|
"idx": 13,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1716076179443,
|
"when": 1716076179443,
|
||||||
"tag": "0013_blushing_starjammers",
|
"tag": "0013_blushing_starjammers",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 14,
|
"idx": 14,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1716715367982,
|
"when": 1716715367982,
|
||||||
"tag": "0014_same_hammerhead",
|
"tag": "0014_same_hammerhead",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 15,
|
"idx": 15,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1717564517104,
|
"when": 1717564517104,
|
||||||
"tag": "0015_fearless_callisto",
|
"tag": "0015_fearless_callisto",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 16,
|
"idx": 16,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1719109196484,
|
"when": 1719109196484,
|
||||||
"tag": "0016_chunky_leopardon",
|
"tag": "0016_chunky_leopardon",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 17,
|
"idx": 17,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1719547174326,
|
"when": 1719547174326,
|
||||||
"tag": "0017_minor_post",
|
"tag": "0017_minor_post",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 18,
|
"idx": 18,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1719928377858,
|
"when": 1719928377858,
|
||||||
"tag": "0018_careful_killmonger",
|
"tag": "0018_careful_killmonger",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 19,
|
"idx": 19,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1721110706912,
|
"when": 1721110706912,
|
||||||
"tag": "0019_heavy_freak",
|
"tag": "0019_heavy_freak",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 20,
|
"idx": 20,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1721363861686,
|
"when": 1721363861686,
|
||||||
"tag": "0020_fantastic_slapstick",
|
"tag": "0020_fantastic_slapstick",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 21,
|
"idx": 21,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1721370423752,
|
"when": 1721370423752,
|
||||||
"tag": "0021_premium_sebastian_shaw",
|
"tag": "0021_premium_sebastian_shaw",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 22,
|
"idx": 22,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1721531163852,
|
"when": 1721531163852,
|
||||||
"tag": "0022_warm_colonel_america",
|
"tag": "0022_warm_colonel_america",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 23,
|
"idx": 23,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1721542782659,
|
"when": 1721542782659,
|
||||||
"tag": "0023_icy_maverick",
|
"tag": "0023_icy_maverick",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 24,
|
"idx": 24,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1721603595092,
|
"when": 1721603595092,
|
||||||
"tag": "0024_dapper_supernaut",
|
"tag": "0024_dapper_supernaut",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 25,
|
"idx": 25,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1721633853118,
|
"when": 1721633853118,
|
||||||
"tag": "0025_lying_mephisto",
|
"tag": "0025_lying_mephisto",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 26,
|
"idx": 26,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1721979220929,
|
"when": 1721979220929,
|
||||||
"tag": "0026_known_dormammu",
|
"tag": "0026_known_dormammu",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 27,
|
"idx": 27,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1722445099203,
|
"when": 1722445099203,
|
||||||
"tag": "0027_red_lady_bullseye",
|
"tag": "0027_red_lady_bullseye",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 28,
|
"idx": 28,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1722503439951,
|
"when": 1722503439951,
|
||||||
"tag": "0028_jittery_eternity",
|
"tag": "0028_jittery_eternity",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 29,
|
"idx": 29,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1722578386823,
|
"when": 1722578386823,
|
||||||
"tag": "0029_colossal_zodiak",
|
"tag": "0029_colossal_zodiak",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 30,
|
"idx": 30,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1723608499147,
|
"when": 1723608499147,
|
||||||
"tag": "0030_little_kabuki",
|
"tag": "0030_little_kabuki",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 31,
|
"idx": 31,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1723701656243,
|
"when": 1723701656243,
|
||||||
"tag": "0031_steep_vulture",
|
"tag": "0031_steep_vulture",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 32,
|
"idx": 32,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1723705257806,
|
"when": 1723705257806,
|
||||||
"tag": "0032_flashy_shadow_king",
|
"tag": "0032_flashy_shadow_king",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 33,
|
"idx": 33,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1725250322137,
|
"when": 1725250322137,
|
||||||
"tag": "0033_white_hawkeye",
|
"tag": "0033_white_hawkeye",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 34,
|
"idx": 34,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1725256397019,
|
"when": 1725256397019,
|
||||||
"tag": "0034_aspiring_secret_warriors",
|
"tag": "0034_aspiring_secret_warriors",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 35,
|
"idx": 35,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1725429324584,
|
"when": 1725429324584,
|
||||||
"tag": "0035_cool_gravity",
|
"tag": "0035_cool_gravity",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 36,
|
"idx": 36,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1725519351871,
|
"when": 1725519351871,
|
||||||
"tag": "0036_tired_ronan",
|
"tag": "0036_tired_ronan",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 37,
|
"idx": 37,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1726988289562,
|
"when": 1726988289562,
|
||||||
"tag": "0037_legal_namor",
|
"tag": "0037_legal_namor",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"idx": 38,
|
"idx": 38,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1727942090102,
|
"when": 1727942090102,
|
||||||
"tag": "0038_rapid_landau",
|
"tag": "0038_rapid_landau",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
}
|
},
|
||||||
]
|
{
|
||||||
}
|
"idx": 39,
|
||||||
|
"version": "6",
|
||||||
|
"when": 1728021127765,
|
||||||
|
"tag": "0039_many_tiger_shark",
|
||||||
|
"breakpoints": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@ -2,7 +2,7 @@ import type { DeploymentJob } from "../queues/deployments-queue";
|
|||||||
|
|
||||||
export const deploy = async (jobData: DeploymentJob) => {
|
export const deploy = async (jobData: DeploymentJob) => {
|
||||||
try {
|
try {
|
||||||
const result = await fetch("http://127.0.0.1:4000/deploy", {
|
const result = await fetch(`${process.env.SERVER_URL}/deploy`, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
@ -13,6 +13,7 @@ export const deploy = async (jobData: DeploymentJob) => {
|
|||||||
console.log(data);
|
console.log(data);
|
||||||
return data;
|
return data;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
console.log(error);
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user