forked from trent_larson/crowd-funder-for-time-pwa
fix error on mobile startup with SQL for contacts foreign key
This commit is contained in:
@@ -251,7 +251,8 @@ const MIGRATIONS = [
|
||||
DROP TABLE contacts;
|
||||
ALTER TABLE _contacts_backup_008 RENAME TO contacts;
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_contacts_did ON contacts(did);
|
||||
-- UNIQUE is important on 'did' because the foreign key from contact_labels fails on mobile without it.
|
||||
CREATE UNIQUE INDEX IF NOT EXISTS idx_contacts_did ON contacts(did);
|
||||
CREATE INDEX IF NOT EXISTS idx_contacts_name ON contacts(name);
|
||||
|
||||
CREATE TABLE contact_labels (
|
||||
|
||||
Reference in New Issue
Block a user