mirror of
https://github.com/usememos/memos.git
synced 2025-11-10 09:21:07 +08:00
chore: tweak default value
This commit is contained in:
parent
2f16b7065a
commit
f8b9a83d4a
1 changed files with 2 additions and 2 deletions
|
|
@ -1,10 +1,10 @@
|
||||||
ALTER TABLE memo ADD COLUMN resource_name TEXT;
|
ALTER TABLE memo ADD COLUMN resource_name TEXT NOT NULL DEFAULT "";
|
||||||
|
|
||||||
UPDATE memo SET resource_name = lower(hex(randomblob(8)));
|
UPDATE memo SET resource_name = lower(hex(randomblob(8)));
|
||||||
|
|
||||||
CREATE UNIQUE INDEX idx_memo_resource_name ON memo (resource_name);
|
CREATE UNIQUE INDEX idx_memo_resource_name ON memo (resource_name);
|
||||||
|
|
||||||
ALTER TABLE resource ADD COLUMN resource_name TEXT;
|
ALTER TABLE resource ADD COLUMN resource_name TEXT NOT NULL DEFAULT "";
|
||||||
|
|
||||||
UPDATE resource SET resource_name = lower(hex(randomblob(8)));
|
UPDATE resource SET resource_name = lower(hex(randomblob(8)));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue