added self notes thing to db

This commit is contained in:
Kima
2023-12-30 13:27:25 +01:00
parent 697c003678
commit f5ad70fb28
3 changed files with 44 additions and 0 deletions

View File

@@ -58,6 +58,8 @@ const userDataDB = DatabaseStruct("user_data", {
"goal_averages": String,
"goal_befores": String,
"goal_pin_dates": String,
// todo and notes
"todo_items": String, "self_notes": String,
});
Future<void> createTable(Database db, DatabaseStruct struct) =>
@@ -115,6 +117,8 @@ Future<Database> initDB(DatabaseProvider database) async {
"goal_averages": "{}",
"goal_befores": "{}",
"goal_pin_dates": "{}",
// todo and notes
"todo_items": "{}", "self_notes": "[]"
});
} catch (error) {
print("ERROR: migrateDB: $error");