Skip to content

Commit

Permalink
Added missing schema exception for Django 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardopires committed Sep 21, 2016
1 parent b9d3770 commit baf6046
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tenant_schemas/management/commands/migrate_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
from django.conf import settings
from django.core.management.commands.migrate import Command as MigrateCommand
from django.db import connection
from django.db.migrations.exceptions import MigrationSchemaMissing

if django.VERSION >= (1, 9, 0):
from django.db.migrations.exceptions import MigrationSchemaMissing
else:
class MigrationSchemaMissing(django.db.utils.DatabaseError):
pass


from tenant_schemas.management.commands import SyncCommon
Expand Down

0 comments on commit baf6046

Please sign in to comment.