Forráskód Böngészése

corrected the collectionsTableCopy name

Abhinav-grd 4 éve
szülő
commit
7c30653239
1 módosított fájl, 3 hozzáadás és 3 törlés
  1. 3 3
      lib/db/collections_db.dart

+ 3 - 3
lib/db/collections_db.dart

@@ -10,6 +10,7 @@ import 'package:sqflite_migration/sqflite_migration.dart';
 class CollectionsDB {
   static final _databaseName = "ente.collections.db";
   static final collectionsTable = 'collections';
+  static final collectionsTableCopy = 'collections_copy';
 
   static final columnID = 'collection_id';
   static final columnOwner = 'owner';
@@ -62,7 +63,7 @@ class CollectionsDB {
 		''';
 
   static final alterNameToAllowNULL = '''
-				CREATE TABLE $collectionsTable-copy  (
+				CREATE TABLE $collectionsTableCopy  (
 					$columnID INTEGER PRIMARY KEY NOT NULL,
 					$columnOwner TEXT NOT NULL,
 					$columnEncryptedKey TEXT NOT NULL,
@@ -75,7 +76,7 @@ class CollectionsDB {
 					$columnUpdationTime TEXT NOT NULL
 				);
 
-				INSERT INTO $collectionsTable-copy
+				INSERT INTO $collectionsTableCopy
 				SELECT *
 				FROM $collectionsTable;
 				DROP TABLE $collectionsTable;
@@ -90,7 +91,6 @@ class CollectionsDB {
 				ADD COLUMN $columnNameDecryptionNonce TEXT
 			''';
 
-
   Future<List<dynamic>> insert(List<Collection> collections) async {
     final db = await instance.database;
     var batch = db.batch();