diff --git a/lib/db/collections_db.dart b/lib/db/collections_db.dart index 1f88853f2..2c3fdc3a0 100644 --- a/lib/db/collections_db.dart +++ b/lib/db/collections_db.dart @@ -53,19 +53,19 @@ class CollectionsDB { static List onCreate(String tableName) { return [ ''' - CREATE TABLE $tableName ( - $columnID INTEGER PRIMARY KEY NOT NULL, - $columnOwner TEXT NOT NULL, - $columnEncryptedKey TEXT NOT NULL, - $columnKeyDecryptionNonce TEXT, - $columnName TEXT, - $columnType TEXT NOT NULL, - $columnEncryptedPath TEXT, - $columnPathDecryptionNonce TEXT, - $columnSharees TEXT, - $columnUpdationTime TEXT NOT NULL - ); - ''' + CREATE TABLE $tableName ( + $columnID INTEGER PRIMARY KEY NOT NULL, + $columnOwner TEXT NOT NULL, + $columnEncryptedKey TEXT NOT NULL, + $columnKeyDecryptionNonce TEXT, + $columnName TEXT, + $columnType TEXT NOT NULL, + $columnEncryptedPath TEXT, + $columnPathDecryptionNonce TEXT, + $columnSharees TEXT, + $columnUpdationTime TEXT NOT NULL + ); + ''' ]; } @@ -73,16 +73,16 @@ class CollectionsDB { return [ ...onCreate(collectionsTableCopy), ''' - INSERT INTO $collectionsTableCopy - SELECT * - FROM $collectionsTable; + INSERT INTO $collectionsTableCopy + SELECT * + FROM $collectionsTable; ''', ''' - DROP TABLE $collectionsTable; + DROP TABLE $collectionsTable; ''', ''' - ALTER TABLE $collectionsTableCopy - RENAME TO $collectionsTable; + ALTER TABLE $collectionsTableCopy + RENAME TO $collectionsTable; ''' ]; } @@ -90,12 +90,12 @@ class CollectionsDB { static List addEncryptedName() { return [ ''' - ALTER TABLE $collectionsTable - ADD COLUMN $columnEncryptedName TEXT; + ALTER TABLE $collectionsTable + ADD COLUMN $columnEncryptedName TEXT; ''', '''ALTER TABLE $collectionsTable - ADD COLUMN $columnNameDecryptionNonce TEXT; - ''' + ADD COLUMN $columnNameDecryptionNonce TEXT; + ''' ]; } diff --git a/lib/db/files_db.dart b/lib/db/files_db.dart index 3ea1ac297..b217779eb 100644 --- a/lib/db/files_db.dart +++ b/lib/db/files_db.dart @@ -104,15 +104,15 @@ class FilesDB { ...onCreate(tableCopy), ''' INSERT INTO $tableCopy - SELECT * - FROM $table; + SELECT * + FROM $table; ''', ''' - DROP TABLE $table; + DROP TABLE $table; ''', ''' - ALTER TABLE $tableCopy - RENAME TO $table; + ALTER TABLE $tableCopy + RENAME TO $table; ''' ]; } diff --git a/pubspec.yaml b/pubspec.yaml index d99e9fafa..c5784a3f9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -91,26 +91,30 @@ flutter: assets: - assets/ fonts: - - family: NunitoSans - fonts: - - asset: fonts/NunitoSans-Regular.ttf - - asset: fonts/NunitoSans-Bold.ttf - - family: Montserrat - fonts: - - asset: fonts/Montserrat-Medium.ttf + - family: NunitoSans + fonts: + - asset: fonts/NunitoSans-Regular.ttf + - asset: fonts/NunitoSans-Bold.ttf + - family: Montserrat + fonts: + - asset: fonts/Montserrat-Medium.ttf # The following line ensures that the Material Icons font is # included with your application, so that you can use the icons in # the material Icons class. uses-material-design: true + # To add assets to your application, add an assets section, like this: # assets: # - images/a_dot_burr.jpeg # - images/a_dot_ham.jpeg + # An image asset can refer to one or more resolution-specific "variants", see # https://flutter.dev/assets-and-images/#resolution-aware. + # For details regarding adding assets from package dependencies, see # https://flutter.dev/assets-and-images/#from-packages + # To add custom fonts to your application, add a fonts section here, # in this "flutter" section. Each entry in this list should have a # "family" key with the font family name, and a "fonts" key with a