Revert "chore: remove obsolete SQL files and associated snapshots"

This reverts commit d77c562c84.

# Conflicts:
#	apps/dokploy/drizzle/meta/0137_snapshot.json
#	apps/dokploy/drizzle/meta/_journal.json
This commit is contained in:
Mauricio Siu
2026-02-05 14:49:01 -06:00
parent 4d8c358b33
commit 3c9945ec35
5 changed files with 7122 additions and 125 deletions

View File

@@ -0,0 +1,2 @@
ALTER TABLE "application" ADD COLUMN "bitbucketRepositorySlug" text;--> statement-breakpoint
ALTER TABLE "compose" ADD COLUMN "bitbucketRepositorySlug" text;

View File

@@ -0,0 +1,10 @@
ALTER TYPE "public"."notificationType" ADD VALUE 'resend' BEFORE 'gotify';--> statement-breakpoint
CREATE TABLE "resend" (
"resendId" text PRIMARY KEY NOT NULL,
"apiKey" text NOT NULL,
"fromAddress" text NOT NULL,
"toAddress" text[] NOT NULL
);
--> statement-breakpoint
ALTER TABLE "notification" ADD COLUMN "resendId" text;--> statement-breakpoint
ALTER TABLE "notification" ADD CONSTRAINT "notification_resendId_resend_resendId_fk" FOREIGN KEY ("resendId") REFERENCES "public"."resend"("resendId") ON DELETE cascade ON UPDATE no action;

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,5 @@
{
"id": "e5c16e66-ec3d-4a91-b3ac-f9ea4577f53f",
"id": "3f56c8d0-1d0d-4791-9c4a-06be622dc244",
"prevId": "5958b029-1fb9-4a44-be24-c96b4e899b84",
"version": "7",
"dialect": "postgresql",
@@ -4492,6 +4492,12 @@
"primaryKey": false,
"notNull": false
},
"resendId": {
"name": "resendId",
"type": "text",
"primaryKey": false,
"notNull": false
},
"gotifyId": {
"name": "gotifyId",
"type": "text",
@@ -4583,6 +4589,19 @@
"onDelete": "cascade",
"onUpdate": "no action"
},
"notification_resendId_resend_resendId_fk": {
"name": "notification_resendId_resend_resendId_fk",
"tableFrom": "notification",
"tableTo": "resend",
"columnsFrom": [
"resendId"
],
"columnsTo": [
"resendId"
],
"onDelete": "cascade",
"onUpdate": "no action"
},
"notification_gotifyId_gotify_gotifyId_fk": {
"name": "notification_gotifyId_gotify_gotifyId_fk",
"tableFrom": "notification",
@@ -4762,6 +4781,43 @@
"checkConstraints": {},
"isRLSEnabled": false
},
"public.resend": {
"name": "resend",
"schema": "",
"columns": {
"resendId": {
"name": "resendId",
"type": "text",
"primaryKey": true,
"notNull": true
},
"apiKey": {
"name": "apiKey",
"type": "text",
"primaryKey": false,
"notNull": true
},
"fromAddress": {
"name": "fromAddress",
"type": "text",
"primaryKey": false,
"notNull": true
},
"toAddress": {
"name": "toAddress",
"type": "text[]",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.slack": {
"name": "slack",
"schema": "",
@@ -6309,102 +6365,6 @@
"checkConstraints": {},
"isRLSEnabled": false
},
"public.sso_provider": {
"name": "sso_provider",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "text",
"primaryKey": true,
"notNull": true
},
"issuer": {
"name": "issuer",
"type": "text",
"primaryKey": false,
"notNull": true
},
"oidc_config": {
"name": "oidc_config",
"type": "text",
"primaryKey": false,
"notNull": false
},
"saml_config": {
"name": "saml_config",
"type": "text",
"primaryKey": false,
"notNull": false
},
"provider_id": {
"name": "provider_id",
"type": "text",
"primaryKey": false,
"notNull": true
},
"user_id": {
"name": "user_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
"organization_id": {
"name": "organization_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
"domain": {
"name": "domain",
"type": "text",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {
"sso_provider_user_id_user_id_fk": {
"name": "sso_provider_user_id_user_id_fk",
"tableFrom": "sso_provider",
"tableTo": "user",
"columnsFrom": [
"user_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
},
"sso_provider_organization_id_organization_id_fk": {
"name": "sso_provider_organization_id_organization_id_fk",
"tableFrom": "sso_provider",
"tableTo": "organization",
"columnsFrom": [
"organization_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {
"sso_provider_provider_id_unique": {
"name": "sso_provider_provider_id_unique",
"nullsNotDistinct": false,
"columns": [
"provider_id"
]
}
},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.user": {
"name": "user",
"schema": "",
@@ -6524,26 +6484,6 @@
"notNull": true,
"default": false
},
"enableEnterpriseFeatures": {
"name": "enableEnterpriseFeatures",
"type": "boolean",
"primaryKey": false,
"notNull": true,
"default": false
},
"licenseKey": {
"name": "licenseKey",
"type": "text",
"primaryKey": false,
"notNull": false
},
"isValidEnterpriseLicense": {
"name": "isValidEnterpriseLicense",
"type": "boolean",
"primaryKey": false,
"notNull": true,
"default": false
},
"stripeCustomerId": {
"name": "stripeCustomerId",
"type": "text",
@@ -6562,12 +6502,6 @@
"primaryKey": false,
"notNull": true,
"default": 0
},
"trustedOrigins": {
"name": "trustedOrigins",
"type": "text[]",
"primaryKey": false,
"notNull": false
}
},
"indexes": {},
@@ -7066,6 +7000,7 @@
"telegram",
"discord",
"email",
"resend",
"gotify",
"ntfy",
"pushover",

View File

@@ -964,8 +964,8 @@
{
"idx": 137,
"version": "7",
"when": 1770274109332,
"tag": "0137_colossal_sally_floyd",
"when": 1769595469101,
"tag": "0137_worried_shriek",
"breakpoints": true
}
]