chore: remove obsolete SQL files for custom webhook notifications

- Deleted SQL scripts related to the 'custom' notification type and its associated table modifications, as they are no longer needed in the current schema.
This commit is contained in:
Mauricio Siu
2025-12-07 13:14:12 -06:00
parent be3403af0c
commit 817264eae4
4 changed files with 0 additions and 96 deletions

View File

@@ -1,12 +0,0 @@
ALTER TYPE "public"."notificationType" ADD VALUE 'custom';--> statement-breakpoint
CREATE TABLE "custom" (
"customId" text PRIMARY KEY NOT NULL,
"endpoint" text NOT NULL,
"httpMethod" text DEFAULT 'POST' NOT NULL,
"headers" text,
"body" text,
"queryParams" text
);
--> statement-breakpoint
ALTER TABLE "notification" ADD COLUMN "customId" text;--> statement-breakpoint
ALTER TABLE "notification" ADD CONSTRAINT "notification_customId_custom_customId_fk" FOREIGN KEY ("customId") REFERENCES "public"."custom"("customId") ON DELETE cascade ON UPDATE no action;

View File

@@ -1,3 +0,0 @@
ALTER TABLE "custom" DROP COLUMN "httpMethod";--> statement-breakpoint
ALTER TABLE "custom" DROP COLUMN "body";--> statement-breakpoint
ALTER TABLE "custom" DROP COLUMN "queryParams";

View File

@@ -3997,56 +3997,6 @@
"checkConstraints": {},
"isRLSEnabled": false
},
"public.custom": {
"name": "custom",
"schema": "",
"columns": {
"customId": {
"name": "customId",
"type": "text",
"primaryKey": true,
"notNull": true
},
"endpoint": {
"name": "endpoint",
"type": "text",
"primaryKey": false,
"notNull": true
},
"httpMethod": {
"name": "httpMethod",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "'POST'"
},
"headers": {
"name": "headers",
"type": "text",
"primaryKey": false,
"notNull": false
},
"body": {
"name": "body",
"type": "text",
"primaryKey": false,
"notNull": false
},
"queryParams": {
"name": "queryParams",
"type": "text",
"primaryKey": false,
"notNull": false
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.discord": {
"name": "discord",
"schema": "",

View File

@@ -4021,37 +4021,6 @@
"checkConstraints": {},
"isRLSEnabled": false
},
"public.custom": {
"name": "custom",
"schema": "",
"columns": {
"customId": {
"name": "customId",
"type": "text",
"primaryKey": true,
"notNull": true
},
"endpoint": {
"name": "endpoint",
"type": "text",
"primaryKey": false,
"notNull": true
},
"headers": {
"name": "headers",
"type": "text",
"primaryKey": false,
"notNull": false
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.discord": {
"name": "discord",
"schema": "",