diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-05-23 12:29:16 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2020-05-23 12:29:16 +0300 |
commit | 625ca9ca5f1252cb83772c1fe334b44de579ed14 (patch) | |
tree | 16a11b8198a4370b9a3ec4124ae2f1a54eecf944 /app | |
parent | 012800e0282bb8dadd268873d1765792693b08d3 (diff) |
Fix table creation
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/it/niedermann/owncloud/notes/persistence/AbstractNotesDatabase.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/src/main/java/it/niedermann/owncloud/notes/persistence/AbstractNotesDatabase.java b/app/src/main/java/it/niedermann/owncloud/notes/persistence/AbstractNotesDatabase.java index ad7ceb74..819b0d1d 100644 --- a/app/src/main/java/it/niedermann/owncloud/notes/persistence/AbstractNotesDatabase.java +++ b/app/src/main/java/it/niedermann/owncloud/notes/persistence/AbstractNotesDatabase.java @@ -121,7 +121,7 @@ abstract class AbstractNotesDatabase extends SQLiteOpenHelper { key_color + " VARCHAR(6) NOT NULL DEFAULT '000000', " + key_text_color + " VARCHAR(6) NOT NULL DEFAULT '0082C9', " + key_capabilities_etag + " TEXT, " + - " FOREIGN KEY(" + key_id + ") REFERENCES " + table_category + "(" + key_category_account_id + "));"); + "FOREIGN KEY(" + key_id + ") REFERENCES " + table_category + "(" + key_category_account_id + "));"); DatabaseIndexUtil.createIndex(db, table_accounts, key_url, key_username, key_account_name, key_etag, key_modified); } @@ -130,8 +130,8 @@ abstract class AbstractNotesDatabase extends SQLiteOpenHelper { key_category_id + " INTEGER PRIMARY KEY AUTOINCREMENT, " + key_category_account_id + " INTEGER NOT NULL, " + key_category_title + " TEXT NOT NULL, " + - " UNIQUE( " + key_category_account_id + " , " + key_category_title + "), " + - " FOREIGN KEY(" + key_id + ") REFERENCES " + table_category + "(" + key_category_account_id + "));"); + "UNIQUE( " + key_category_account_id + " , " + key_category_title + "), " + + "FOREIGN KEY(" + key_category_account_id + ") REFERENCES " + table_category + "(" + key_id + "));"); DatabaseIndexUtil.createIndex(db, table_category, key_category_id, key_category_account_id, key_category_title); } |