Skip to content

Commit ecf7a83

Browse files
committed
avoid postgres errors pre migration run
1 parent b2f12ac commit ecf7a83

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

netbox_custom_objects/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import sys
22
import warnings
33

4-
from django.db import transaction
54
from django.db.utils import DatabaseError, OperationalError, ProgrammingError
65
from netbox.plugins import PluginConfig
76

@@ -33,7 +32,7 @@ def check_custom_object_type_table_exists():
3332
table_name = CustomObjectType._meta.db_table
3433
cursor.execute("""
3534
SELECT EXISTS (
36-
SELECT FROM information_schema.tables
35+
SELECT FROM information_schema.tables
3736
WHERE table_name = %s
3837
)
3938
""", [table_name])

0 commit comments

Comments
 (0)