init commit
This commit is contained in:
11
store/migration/sqlite/0.19/00__add_resource_name.sql
Normal file
11
store/migration/sqlite/0.19/00__add_resource_name.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
ALTER TABLE memo ADD COLUMN resource_name TEXT NOT NULL DEFAULT "";
|
||||
|
||||
UPDATE memo SET resource_name = lower(hex(randomblob(8)));
|
||||
|
||||
CREATE UNIQUE INDEX idx_memo_resource_name ON memo (resource_name);
|
||||
|
||||
ALTER TABLE resource ADD COLUMN resource_name TEXT NOT NULL DEFAULT "";
|
||||
|
||||
UPDATE resource SET resource_name = lower(hex(randomblob(8)));
|
||||
|
||||
CREATE UNIQUE INDEX idx_resource_resource_name ON resource (resource_name);
|
||||
Reference in New Issue
Block a user