Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stefan-niedermann/nextcloud-notes.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorStefan Niedermann <info@niedermann.it>2020-05-23 12:29:16 +0300
committerStefan Niedermann <info@niedermann.it>2020-05-23 12:29:16 +0300
commit625ca9ca5f1252cb83772c1fe334b44de579ed14 (patch)
tree16a11b8198a4370b9a3ec4124ae2f1a54eecf944 /app
parent012800e0282bb8dadd268873d1765792693b08d3 (diff)
Fix table creation
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/it/niedermann/owncloud/notes/persistence/AbstractNotesDatabase.java6
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);
}