From 587c511c9761610809aee48f325f6a64fbe3957b Mon Sep 17 00:00:00 2001 From: Billy Brawner Date: Sat, 1 Sep 2018 10:26:39 -0500 Subject: [PATCH] Fix database creation syntax --- src/app/budget-database.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/budget-database.ts b/src/app/budget-database.ts index 855b6be..17a2a52 100644 --- a/src/app/budget-database.ts +++ b/src/app/budget-database.ts @@ -15,8 +15,12 @@ export class BudgetDatabase extends Dexie { constructor () { super('BudgetDatabase') this.version(1).stores({ + transactions: `++id, title, description, amount, date, category, type`, + categories: `++id, name, amount, repeat, color` + }) + this.version(2).stores({ transactions: `++id, title, description, amount, date, category_id, type`, - categories: `++id, name, amount, repeat, color, type-` + categories: `++id, name, amount, repeat, color, type` }) this.transactions.mapToClass(Transaction) this.categories.mapToClass(Category)