Make python launching more portable. Re-flow help text to fit within 80 characters for terminals that do not easily resize. (This commit is mostly aimed towards MS Windows installations.)
This commit is contained in:
parent
7fb6362dc4
commit
f11fbdf739
1 changed files with 20 additions and 15 deletions
|
|
@ -64,13 +64,13 @@ def run_south(mode):
|
||||||
if mode == "init":
|
if mode == "init":
|
||||||
for appname in APPLIST:
|
for appname in APPLIST:
|
||||||
print "Initializing %s ..." % appname
|
print "Initializing %s ..." % appname
|
||||||
call(["python", "manage.py", "convert_to_south", appname])
|
call([sys.executable, "manage.py", "convert_to_south", appname])
|
||||||
print "\nInitialization complete. That's all you need to do for now."
|
print "\nInitialization complete. That's all you need to do for now."
|
||||||
elif mode == "update":
|
elif mode == "update":
|
||||||
for appname in APPLIST:
|
for appname in APPLIST:
|
||||||
print "Updating/migrating schema for %s ..." % appname
|
print "Updating/migrating schema for %s ..." % appname
|
||||||
call(["python", "manage.py", "schemamigration", appname, "--auto"])
|
call([sys.executable, "manage.py", "schemamigration", appname, "--auto"])
|
||||||
call(["python", "manage.py", "migrate", appname])
|
call([sys.executable, "manage.py", "migrate", appname])
|
||||||
print "\nUpdate complete."
|
print "\nUpdate complete."
|
||||||
|
|
||||||
def south_ui():
|
def south_ui():
|
||||||
|
|
@ -81,23 +81,28 @@ def south_ui():
|
||||||
string = """
|
string = """
|
||||||
Evennia Database Migration Tool
|
Evennia Database Migration Tool
|
||||||
|
|
||||||
You usually don't need to use this tool unless a new version of Evennia tells you that
|
You usually don't need to use this tool unless a new version of Evennia
|
||||||
the database scheme changed in some way, AND you don't want to reset your database.
|
tells you that the database scheme changed in some way, AND you don't want
|
||||||
This tool will help you to migrate an existing database without having to manually edit
|
to reset your database.
|
||||||
your tables and fields to match the new scheme. For that to work you must have run this
|
|
||||||
tool *before* applying the changes however.
|
|
||||||
|
|
||||||
This is a simple wrapper on top of South, a Django database scheme migration tool.
|
This tool will help you to migrate an existing database without having to
|
||||||
If you want more control, you can call manage.py directly using the instructions
|
manually edit your tables and fields to match the new scheme. For that
|
||||||
found at http://south.aeracode.org/docs.
|
to work you must have run this tool *before* applying the changes however.
|
||||||
|
|
||||||
NOTE: Evennia is still in Alpha - there is no guarantee that database changes will still
|
This is a simple wrapper on top of South, a Django database scheme
|
||||||
not be too advanced to handle with this simple tool, and it is too soon to talk
|
migration tool.
|
||||||
of supplying custom migration schemes to new versions.
|
|
||||||
|
If you want more control, you can call manage.py directly using the
|
||||||
|
instructions found at http://south.aeracode.org/docs.
|
||||||
|
|
||||||
|
NOTE: Evennia is still in Alpha - there is no guarantee that database
|
||||||
|
changes will still not be too advanced to handle with this simple
|
||||||
|
tool, and it is too soon to talk of supplying custom migration
|
||||||
|
schemes to new versions.
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
|
|
||||||
i - Initialize an existing/fresh database with migration mappings (done once)
|
i - Initialize an existing/new database with migration mappings (done once)
|
||||||
u - Update an initialized database to the changed scheme
|
u - Update an initialized database to the changed scheme
|
||||||
q - Quit
|
q - Quit
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue