# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations
import django.db

class Migration(migrations.Migration):
    dependencies = [
        ('id', '0011_auto_20150916_1546'),
    ]

    database_operations = [
        migrations.AlterModelTable('ExternalDatabase', 'databases_externaldatabase'),

        # If running on PostgreSQL, rename the sequencer also - no sequencer left behind!
        migrations.RunSQL(
            "ALTER SEQUENCE id_externaldatabase_id_seq RENAME TO databases_externaldatabase_id_seq" if django.db.connection.vendor == "postgresql" \
             else "SELECT 1"
        )
    ]

    state_operations = [
        migrations.DeleteModel('ExternalDatabase')
    ]

    operations = [
        migrations.SeparateDatabaseAndState(
            database_operations=database_operations,
            state_operations=state_operations)
    ]

@@ -94,25 +94,8 @@
 ions
-%0Aimport django.db
 %0A%0Acl
@@ -320,320 +320,13 @@
 '),%0A
-%0A        # If running on PostgreSQL, rename the sequencer also - no sequencer left behind!%0A        migrations.RunSQL(%0A            %22ALTER SEQUENCE id_externaldatabase_id_seq RENAME TO databases_externaldatabase_id_seq%22 if django.db.connection.vendor == %22postgresql%22 %5C%0A             else %22SELECT 1%22%0A        )%0A 
    %5D%0A
+
 %0A   
@@ -567,16 +567,27 @@
 erations
-)
+%0A        ),%0A
 %0A    %5D%0A

Revoke earlier change: This migration has already been applied.