# -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-07-06 20:41


from django.db import migrations, connection


def _table_exists(db_cursor, tablename):
    "Returns bool if table exists or not"
    return tablename in connection.introspection.table_names()


class Migration(migrations.Migration):

    dependencies = [
        ('scripts', '0010_auto_20170705_1736'),
    ]

    db_cursor = connection.cursor()

    if not _table_exists(db_cursor, 'scripts_scriptdb_db_player'):
        operations = []
    else:
        operations = [
            migrations.RemoveField(
                model_name='scriptdb',
                name='db_player',
            ),
        ]
