Skip to content

Commit a9856ce

Browse files
authored
check if postgresql to fix 105 (#149)
1 parent 9243efc commit a9856ce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

easyaudit/migrations/0013_auto_20190723_0126.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# Generated by Django 2.1 on 2019-07-23 01:26
22

33
from django.db import migrations, models
4+
from django.db import connection
45

56

67
def drop_index_if_exists(apps, schema_editor):
7-
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"')
810

911

1012
class Migration(migrations.Migration):

0 commit comments

Comments
 (0)