db: backfill toolbox fields for SiteSettings/NavLinks
This commit is contained in:
parent
1e3a99855f
commit
29b43b9921
9
lib/db/migrations/0034_add_toolbox_fields.sql
Normal file
9
lib/db/migrations/0034_add_toolbox_fields.sql
Normal file
@ -0,0 +1,9 @@
|
||||
-- Backfill toolbox fields that are required by current SiteSettings/NavLinks schema.
|
||||
|
||||
ALTER TABLE "SiteSettings" ADD COLUMN IF NOT EXISTS "toolbox1Name" varchar(64) DEFAULT '工具箱';
|
||||
ALTER TABLE "SiteSettings" ADD COLUMN IF NOT EXISTS "toolbox1Enabled" boolean NOT NULL DEFAULT true;
|
||||
ALTER TABLE "SiteSettings" ADD COLUMN IF NOT EXISTS "toolbox2Name" varchar(64) DEFAULT '工具箱2';
|
||||
ALTER TABLE "SiteSettings" ADD COLUMN IF NOT EXISTS "toolbox2Enabled" boolean NOT NULL DEFAULT false;
|
||||
|
||||
ALTER TABLE "NavLinks" ADD COLUMN IF NOT EXISTS "toolboxGroup" integer NOT NULL DEFAULT 1;
|
||||
|
||||
@ -141,6 +141,13 @@
|
||||
"when": 1771003238797,
|
||||
"tag": "0033_create_tutorial_videos",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 20,
|
||||
"version": "7",
|
||||
"when": 1771004300000,
|
||||
"tag": "0034_add_toolbox_fields",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user