Looking at the model.py file you have some methods for going from
version to version of the model, is this part of the tg-migrations? Is
this just home grown db updating? Is there a different method I'm
missing to get started manually?
Thanks
Rick
I'll check this right now :)
Basically the create_db script does not exist anymore and has been
replaced with the model.py own handling of db creation and upgrade.
The version to version code you see in model.py is a home grown way of
managing the updates from one db version to another...
You may miss some database driver and not see it clearly... Do you
have pysqlite installed on your machine ? if yes make sure libsqlite
(the C library) is also present.
If the database driver is present on your machine the model.py should
handle the creation of the initial database for you... I just tried
this from my working copy by removing my sqlite file and it works...
Hope it helps,
Florent.
I'll check this right now :)
Basically the create_db script does not exist anymore and has been
replaced with the model.py own handling of db creation and upgrade.
The version to version code you see in model.py is a home grown way of
managing the updates from one db version to another...
You may miss some database driver and not see it clearly... Do you
have pysqlite installed on your machine ? if yes make sure libsqlite
(the C library) is also present.
If the database driver is present on your machine the model.py should
handle the creation of the initial database for you... I just tried
this from my working copy by removing my sqlite file and it works...
Hope it helps,
except ProgrammingError:
# mysql is throwing this exception and we need to create the db structure
create_model()
Adding that got the tables created in mysql and everything running.