From 0afe1e5b5b4a59f895da981ba4e3538fea3b9475 Mon Sep 17 00:00:00 2001 From: Mario Steele Date: Fri, 6 Mar 2026 22:44:23 -0600 Subject: [PATCH] Updated Globals switched from Context.ensure_tables() to Context.run_migrations() --- lib/globals.gd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/globals.gd b/lib/globals.gd index cfdecb45..171896ed 100644 --- a/lib/globals.gd +++ b/lib/globals.gd @@ -16,7 +16,11 @@ func _ready() -> void: context.setup() context.open_db("user://overlay.db") - context.ensure_tables() + # Method one, just create all tables, prevents alterations to existing tables. + #context.ensure_tables() + # Method two, use migrations to handle setting up database tables, ensuring that + # tables can be modified in the future + context.run_migrations() if FileAccess.file_exists("user://settings.tres"): settings = load("user://settings.tres") else: