From 3fe66e7ed258fea2e0297891dc0b236b5215ac9e Mon Sep 17 00:00:00 2001 From: Antonio Fernandez Date: Thu, 24 Dec 2020 11:12:35 -0500 Subject: [PATCH] Fix for being able to disable IPv6 support I was getting an error when trying to disable IPv6 support because the DB wasn't allowing the subnet to be null however the address was able to be null. Should be good now. --- .../migrations/versions/006_create_v6_subnet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wg_dashboard_backend/migrations/versions/006_create_v6_subnet.py b/wg_dashboard_backend/migrations/versions/006_create_v6_subnet.py index a17ff63..6c9c7a9 100644 --- a/wg_dashboard_backend/migrations/versions/006_create_v6_subnet.py +++ b/wg_dashboard_backend/migrations/versions/006_create_v6_subnet.py @@ -6,7 +6,7 @@ def upgrade(migrate_engine): try: meta = MetaData(bind=migrate_engine) peer = Table('server', meta, autoload=True) - v6_subnet = Column('v6_subnet', INTEGER) + v6_subnet = Column('v6_subnet', INTEGER, nullable=True) v6_subnet.create(peer) except: pass