Updated Globals
switched from Context.ensure_tables() to Context.run_migrations()
This commit is contained in:
parent
1de7baf717
commit
0afe1e5b5b
1 changed files with 5 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue