mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
Patching a bug when delete an organization, add refetch.
This commit is contained in:
@@ -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
@@ -22,6 +22,13 @@
|
||||
"when": 1753720983182,
|
||||
"tag": "0002_pink_groot",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 3,
|
||||
"version": "7",
|
||||
"when": 1756321312852,
|
||||
"tag": "0003_absent_maestro",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user