mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-22 23:01:35 +03:00
15 lines
457 B
MySQL
15 lines
457 B
MySQL
|
/*
|
||
|
Warnings:
|
||
|
|
||
|
- The primary key for the `updates` table will be changed. If it partially fails, the table could be left without primary key constraint.
|
||
|
|
||
|
*/
|
||
|
-- AlterTable
|
||
|
ALTER TABLE "snapshots" ALTER COLUMN "seq" DROP NOT NULL;
|
||
|
|
||
|
-- AlterTable
|
||
|
ALTER TABLE "updates" DROP CONSTRAINT "updates_pkey",
|
||
|
ALTER COLUMN "created_at" DROP DEFAULT,
|
||
|
ALTER COLUMN "seq" DROP NOT NULL,
|
||
|
ADD CONSTRAINT "updates_pkey" PRIMARY KEY ("workspace_id", "guid", "created_at");
|