Unverified Commit 0ccfd0c7 authored by boojack's avatar boojack Committed by GitHub

fix: resource table migration (#369)

* fix: resource table migration

* chore: update
parent 0ea1733a
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment