mirror of
https://github.com/evennia/evennia.git
synced 2026-04-05 07:27:17 +02:00
gtaylor convinced me to add migrations to the Evennia repo. This means that game/migrate.py is no more. The migrations will help you to adjust your database when Evennia releases a new database change, no need to drop the database or manually adjust tables. To make use of our schema migrations, you need to have Django-South installed.
To convert to django-south operations, easiest is if you are willing to drop your old database (e.g. delete evennia.db if you use default sqlite3). Then do: "game/manage.py syncdb" followed by "game/manage.py migrate". That should do it. If you ever deletes your database, just rerun those two commands. If you want to convert an existing database, do game/manage.py convert_to_south comms game/manage.py convert_to_south config game/manage.py convert_to_south help game/manage.py convert_to_south objects game/manage.py convert_to_south players game/manage.py convert_to_south scripts In the future, you will then be able to do ./manage.py migrate when we tell you the schema has changed.
This commit is contained in:
parent
75956de7d1
commit
9b9f90d91c
13 changed files with 670 additions and 145 deletions
0
src/scripts/migrations/__init__.py
Normal file
0
src/scripts/migrations/__init__.py
Normal file
Loading…
Add table
Add a link
Reference in a new issue