We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9243efc commit a9856ceCopy full SHA for a9856ce
easyaudit/migrations/0013_auto_20190723_0126.py
@@ -1,10 +1,12 @@
1
# Generated by Django 2.1 on 2019-07-23 01:26
2
3
from django.db import migrations, models
4
+from django.db import connection
5
6
7
def drop_index_if_exists(apps, schema_editor):
- schema_editor.execute('DROP INDEX IF EXISTS "easyaudit_requestevent_url_37d1b8c4"')
8
+ if connection.vendor == 'postgresql':
9
+ schema_editor.execute('DROP INDEX IF EXISTS "easyaudit_requestevent_url_37d1b8c4"')
10
11
12
class Migration(migrations.Migration):
0 commit comments