mirror of
https://github.com/usememos/memos.git
synced 2025-03-11 04:53:02 +08:00
fix: upgrade scripts (#3344)
This commit is contained in:
parent
a15025303b
commit
80df8f8aed
1 changed files with 3 additions and 4 deletions
|
@ -1,7 +1,6 @@
|
|||
ALTER TABLE `resource`
|
||||
ADD COLUMN `storage_type` VARCHAR(256) NOT NULL DEFAULT '',
|
||||
ADD COLUMN `reference` VARCHAR(256) NOT NULL DEFAULT '',
|
||||
ADD COLUMN `payload` TEXT NOT NULL;
|
||||
ALTER TABLE `resource` ADD COLUMN `storage_type` VARCHAR(256) NOT NULL DEFAULT '',
|
||||
ALTER TABLE `resource` ADD COLUMN `reference` VARCHAR(256) NOT NULL DEFAULT '',
|
||||
ALTER TABLE `resource` ADD COLUMN `payload` TEXT NOT NULL;
|
||||
|
||||
UPDATE `resource`
|
||||
SET `storage_type` = 'LOCAL', `reference` = `internal_path`
|
||||
|
|
Loading…
Reference in a new issue