mirror of
https://github.com/usememos/memos.git
synced 2024-12-26 23:22:47 +08:00
fix: resource table migration (#369)
* fix: resource table migration * chore: update
This commit is contained in:
parent
0ea1733acc
commit
0ccfd0c743
1 changed files with 17 additions and 1 deletions
|
@ -93,7 +93,23 @@ CREATE TABLE resource (
|
|||
size INTEGER NOT NULL DEFAULT 0
|
||||
);
|
||||
|
||||
INSERT INTO resource SELECT * FROM _resource_old;
|
||||
INSERT INTO resource (
|
||||
id, creator_id, created_ts, updated_ts,
|
||||
filename, blob, external_link, type,
|
||||
size
|
||||
)
|
||||
SELECT
|
||||
id,
|
||||
creator_id,
|
||||
created_ts,
|
||||
updated_ts,
|
||||
filename,
|
||||
blob,
|
||||
external_link,
|
||||
type,
|
||||
size
|
||||
FROM
|
||||
_resource_old;
|
||||
|
||||
DROP TABLE IF EXISTS _resource_old;
|
||||
|
||||
|
|
Loading…
Reference in a new issue