mirror of
https://github.com/django/django.git
synced 2025-07-05 02:09:13 +00:00
schema-evolution:
added check to see if your backend is supported yet. git-svn-id: http://code.djangoproject.com/svn/django/branches/schema-evolution@5793 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
c383135d2d
commit
6aad6a8a48
@ -496,6 +496,14 @@ def get_sql_evolution(app):
|
|||||||
"Edit your settings file and change DATABASE_ENGINE to something like 'postgresql' or 'mysql'.\n"))
|
"Edit your settings file and change DATABASE_ENGINE to something like 'postgresql' or 'mysql'.\n"))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
try:
|
||||||
|
backend.get_add_column_sql
|
||||||
|
except:
|
||||||
|
# This must be an unsupported database backend
|
||||||
|
sys.stderr.write(style.ERROR("Error: Django doesn't know which syntax to use for your SQL statements, " +
|
||||||
|
"because schema evolution support isn't built into your database backend yet. Sorry!\n"))
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
# First, try validating the models.
|
# First, try validating the models.
|
||||||
_check_for_validation_errors()
|
_check_for_validation_errors()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user