Patching a bug when delete an organization, add refetch.

This commit is contained in:
charlesgauthereau
2025-08-27 21:16:13 +02:00
parent dd7a65262c
commit 2f9e33f4db
16 changed files with 1842 additions and 38 deletions
+16
View File
@@ -0,0 +1,16 @@
CREATE TYPE "public"."retention_policy_type" AS ENUM('count', 'days', 'gfs');--> statement-breakpoint
CREATE TABLE "retention_policies" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"database_id" uuid NOT NULL,
"type" "retention_policy_type" NOT NULL,
"count" integer DEFAULT 7,
"days" integer DEFAULT 30,
"gfs_daily" integer DEFAULT 7,
"gfs_weekly" integer DEFAULT 4,
"gfs_monthly" integer DEFAULT 12,
"gfs_yearly" integer DEFAULT 3,
"created_at" timestamp DEFAULT now() NOT NULL,
"updated_at" timestamp
);
--> statement-breakpoint
ALTER TABLE "retention_policies" ADD CONSTRAINT "retention_policies_database_id_databases_id_fk" FOREIGN KEY ("database_id") REFERENCES "public"."databases"("id") ON DELETE cascade ON UPDATE no action;
File diff suppressed because it is too large Load Diff
+7
View File
@@ -22,6 +22,13 @@
"when": 1753720983182,
"tag": "0002_pink_groot",
"breakpoints": true
},
{
"idx": 3,
"version": "7",
"when": 1756321312852,
"tag": "0003_absent_maestro",
"breakpoints": true
}
]
}