You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to a complete lack of actually using this code path more than once, there is no clear way to create a new lore database from scratch.
One could work around this by trying to import an empty file, but import currently only creates the Lore table, so this would break with the recent addition of tags.
Note to self: Write some tests for this stuff in particular so it doesn't break again in the future.
A couple options for building this that come to mind:
If there is no lore.db file, create it and create the tables (on startup)
Create a setup.py type script that creates and initializes the database file
Add an init command that creates the tables (if they don't already exist -- check if Model.create_table() is destructive)
The text was updated successfully, but these errors were encountered:
Due to a complete lack of actually using this code path more than once, there is no clear way to create a new lore database from scratch.
One could work around this by trying to
import
an empty file, butimport
currently only creates the Lore table, so this would break with the recent addition of tags.Note to self: Write some tests for this stuff in particular so it doesn't break again in the future.
A couple options for building this that come to mind:
lore.db
file, create it and create the tables (on startup)setup.py
type script that creates and initializes the database fileinit
command that creates the tables (if they don't already exist -- check ifModel.create_table()
is destructive)The text was updated successfully, but these errors were encountered: