mirror of
https://github.com/netbox-community/netbox.git
synced 2026-03-30 06:12:13 +02:00
23 lines
773 B
Python
23 lines
773 B
Python
from django.db import migrations
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [
|
|
('users', '0011_concrete_objecttype'),
|
|
]
|
|
|
|
operations = [
|
|
# Django admin UI was removed in NetBox v4.0
|
|
# Older installations may still have the old `django_admin_log` table in place
|
|
# Drop the obsolete table if it exists. This is a no-op on fresh or already-clean DBs.
|
|
migrations.RunSQL(
|
|
sql='DROP TABLE IF EXISTS "django_admin_log";',
|
|
reverse_sql=migrations.RunSQL.noop,
|
|
),
|
|
# Clean up a potential leftover sequence in older DBs
|
|
migrations.RunSQL(
|
|
sql='DROP SEQUENCE IF EXISTS "django_admin_log_id_seq";',
|
|
reverse_sql=migrations.RunSQL.noop,
|
|
),
|
|
]
|