Skip to content

Commit 865e9b6

Browse files
committed
fix: double-quotes to single-quotes
1 parent fffff99 commit 865e9b6

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

lib/services/database/migrations/0001_initial_schema.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ class InitialSchema extends Migration {
115115

116116
await db.execute('''
117117
INSERT INTO `$currencyTable`(`${CurrencyFields.symbol}`, `${CurrencyFields.code}`, `${CurrencyFields.name}`, `${CurrencyFields.mainCurrency}`) VALUES
118-
("€", "EUR", "Euro", 1),
119-
("\$", "USD", "United States Dollar", 0),
120-
("CHF", "CHF", "Switzerland Franc", 0),
121-
("£", "GBP", "United Kingdom Pound", 0);
118+
('€', 'EUR', 'Euro', 1),
119+
('\$', 'USD', 'United States Dollar', 0),
120+
('CHF', 'CHF', 'Switzerland Franc', 0),
121+
('£', 'GBP', 'United Kingdom Pound', 0);
122122
''');
123123
}
124124
}

lib/services/database/sossoldi_database.dart

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -205,45 +205,45 @@ class SossoldiDatabase {
205205
// Add some fake accounts
206206
await _database?.execute('''
207207
INSERT INTO bankAccount(id, name, symbol, color, startingValue, active, mainAccount, createdAt, updatedAt) VALUES
208-
(70, "Revolut", 'payments', 1, 1235.10, 1, 1, '${DateTime.now()}', '${DateTime.now()}'),
209-
(71, "N26", 'credit_card', 2, 3823.56, 1, 0, '${DateTime.now()}', '${DateTime.now()}'),
210-
(72, "Fineco", 'account_balance', 3, 0.00, 1, 0, '${DateTime.now()}', '${DateTime.now()}');
208+
(70, 'Revolut', 'payments', 1, 1235.10, 1, 1, '${DateTime.now()}', '${DateTime.now()}'),
209+
(71, 'N26', 'credit_card', 2, 3823.56, 1, 0, '${DateTime.now()}', '${DateTime.now()}'),
210+
(72, 'Fineco', 'account_balance', 3, 0.00, 1, 0, '${DateTime.now()}', '${DateTime.now()}');
211211
''');
212212

213213
// Add fake categories
214214
await _database?.execute('''
215215
INSERT INTO categoryTransaction(id, name, type, symbol, color, note, parent, createdAt, updatedAt) VALUES
216-
(10, "Out", "OUT", "restaurant", 0, '', null, '${DateTime.now()}', '${DateTime.now()}'),
217-
(11, "Home", "OUT", "home", 1, '', null, '${DateTime.now()}', '${DateTime.now()}'),
218-
(12, "Furniture","OUT", "home", 2, '', 11, '${DateTime.now()}', '${DateTime.now()}'),
219-
(13, "Shopping", "OUT", "shopping_cart", 3, '', null, '${DateTime.now()}', '${DateTime.now()}'),
220-
(14, "Leisure", "OUT", "subscriptions", 4, '', null, '${DateTime.now()}', '${DateTime.now()}'),
221-
(15, "Transports", "OUT", "directions_car", 6, '', null, '${DateTime.now()}', '${DateTime.now()}'),
222-
(16, "Salary", "IN", "work", 5, '', null, '${DateTime.now()}', '${DateTime.now()}');
216+
(10, 'Out', 'OUT', 'restaurant', 0, '', null, '${DateTime.now()}', '${DateTime.now()}'),
217+
(11, 'Home', 'OUT', 'home', 1, '', null, '${DateTime.now()}', '${DateTime.now()}'),
218+
(12, 'Furniture','OUT', 'home', 2, '', 11, '${DateTime.now()}', '${DateTime.now()}'),
219+
(13, 'Shopping', 'OUT', 'shopping_cart', 3, '', null, '${DateTime.now()}', '${DateTime.now()}'),
220+
(14, 'Leisure', 'OUT', 'subscriptions', 4, '', null, '${DateTime.now()}', '${DateTime.now()}'),
221+
(15, 'Transports', 'OUT', 'directions_car', 6, '', null, '${DateTime.now()}', '${DateTime.now()}'),
222+
(16, 'Salary', 'IN', 'work', 5, '', null, '${DateTime.now()}', '${DateTime.now()}');
223223
''');
224224

225225
// Add currencies
226226
await _database?.execute('''
227227
INSERT INTO currency(symbol, code, name, mainCurrency) VALUES
228-
("€", "EUR", "Euro", 1),
229-
("\$", "USD", "United States Dollar", 0),
230-
("CHF", "CHF", "Switzerland Franc", 0),
231-
("£", "GBP", "United Kingdom Pound", 0);
228+
('€', 'EUR', 'Euro', 1),
229+
('\$', 'USD', 'United States Dollar', 0),
230+
('CHF', 'CHF', 'Switzerland Franc', 0),
231+
('£', 'GBP', 'United Kingdom Pound', 0);
232232
''');
233233

234234
// Add fake budgets
235235
await _database?.execute('''
236236
INSERT INTO budget(idCategory, name, amountLimit, active, createdAt, updatedAt) VALUES
237-
(13, "Grocery", 900.00, 1, '${DateTime.now()}', '${DateTime.now()}'),
238-
(11, "Home", 123.45, 0, '${DateTime.now()}', '${DateTime.now()}');
237+
(13, 'Grocery', 900.00, 1, '${DateTime.now()}', '${DateTime.now()}'),
238+
(11, 'Home', 123.45, 0, '${DateTime.now()}', '${DateTime.now()}');
239239
''');
240240

241241
// Add fake recurring transactions
242242
await _database?.execute('''
243243
INSERT INTO recurringTransaction(fromDate, toDate, amount,type, note, recurrency, idCategory, idBankAccount, createdAt, updatedAt) VALUES
244-
("2024-02-23", null, 10.99, "OUT", "404 Books", "MONTHLY", 14, 70, '${DateTime.now()}', '${DateTime.now()}'),
245-
("2023-12-13", null, 4.97, "OUT", "ETF Consultant Parcel", "DAILY", 14, 70, '${DateTime.now()}', '${DateTime.now()}'),
246-
("2023-02-11", "2028-02-11", 1193.40, "OUT", "Car Loan", "QUARTERLY", 15, 72, '${DateTime.now()}', '${DateTime.now()}');
244+
('2024-02-23', null, 10.99, 'OUT', '404 Books', 'MONTHLY', 14, 70, '${DateTime.now()}', '${DateTime.now()}'),
245+
('2023-12-13', null, 4.97, 'OUT', 'ETF Consultant Parcel', 'DAILY', 14, 70, '${DateTime.now()}', '${DateTime.now()}'),
246+
('2023-02-11', '2028-02-11', 1193.40, 'OUT', 'Car Loan', 'QUARTERLY', 15, 72, '${DateTime.now()}', '${DateTime.now()}');
247247
''');
248248

249249
// Add fake transactions

0 commit comments

Comments
 (0)