diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-05-23 12:30:45 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2020-05-23 12:30:45 +0300 |
commit | e0e0033efae6879fff33458762a4977cbe488d09 (patch) | |
tree | fc5e992096f83ca127a7e91ffc2b216186900c71 /app | |
parent | 625ca9ca5f1252cb83772c1fe334b44de579ed14 (diff) |
Fix table creation
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/it/niedermann/owncloud/notes/persistence/AbstractNotesDatabase.java | 2 |
1 files changed, 1 insertions, 1 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 819b0d1d..19ea288b 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 @@ -131,7 +131,7 @@ abstract class AbstractNotesDatabase extends SQLiteOpenHelper { key_category_account_id + " INTEGER NOT NULL, " + key_category_title + " TEXT NOT NULL, " + "UNIQUE( " + key_category_account_id + " , " + key_category_title + "), " + - "FOREIGN KEY(" + key_category_account_id + ") REFERENCES " + table_category + "(" + key_id + "));"); + "FOREIGN KEY(" + key_category_account_id + ") REFERENCES " + table_accounts + "(" + key_id + "));"); DatabaseIndexUtil.createIndex(db, table_category, key_category_id, key_category_account_id, key_category_title); } |