mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Added a better check to account for changes in django1.8+.
This commit is contained in:
parent
6644effef8
commit
df5c5f4fed
1 changed files with 1 additions and 1 deletions
|
|
@ -454,7 +454,7 @@ def check_database():
|
|||
# Check so a database exists and is accessible
|
||||
from django.db import connection
|
||||
tables = connection.introspection.get_table_list(connection.cursor())
|
||||
if not isinstance(tables, basestring): # django 1.8+
|
||||
if not isinstance(tables[0], basestring): # django 1.8+
|
||||
tables = [tableinfo.name for tableinfo in tables]
|
||||
if tables and u'players_playerdb' in tables:
|
||||
# database exists and seems set up. Initialize evennia.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue