2023-11-22 06:31:22 +03:00
|
|
|
-- AlterTable
|
2023-11-22 10:56:59 +03:00
|
|
|
ALTER TABLE "blobs" ADD COLUMN "deleted_at" TIMESTAMPTZ(6);
|
2023-11-22 06:31:22 +03:00
|
|
|
|
|
|
|
-- CreateTable
|
|
|
|
CREATE TABLE "snapshot_histories" (
|
|
|
|
"workspace_id" VARCHAR(36) NOT NULL,
|
|
|
|
"guid" VARCHAR(36) NOT NULL,
|
2023-11-22 10:56:59 +03:00
|
|
|
"timestamp" TIMESTAMPTZ(6) NOT NULL,
|
2023-11-22 06:31:22 +03:00
|
|
|
"blob" BYTEA NOT NULL,
|
|
|
|
"state" BYTEA,
|
2023-11-22 10:56:59 +03:00
|
|
|
"expired_at" TIMESTAMPTZ(6) NOT NULL,
|
2023-11-22 06:31:22 +03:00
|
|
|
|
2023-11-22 10:56:59 +03:00
|
|
|
CONSTRAINT "snapshot_histories_pkey" PRIMARY KEY ("workspace_id","guid","timestamp")
|
2023-11-22 06:31:22 +03:00
|
|
|
);
|