dashboardwireguardwg-managervpnsite-to-siteobfuscationwireguard-vpn-setupwireguard-vpnwireguard-tunnelwireguard-dashboard
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
485 B
22 lines
485 B
5 years ago
|
from sqlalchemy import *
|
||
|
from migrate import *
|
||
|
|
||
|
|
||
|
def upgrade(migrate_engine):
|
||
|
try:
|
||
|
meta = MetaData(bind=migrate_engine)
|
||
|
peer = Table('server', meta, autoload=True)
|
||
|
v6_subnet = Column('v6_subnet', INTEGER)
|
||
|
v6_subnet.create(peer)
|
||
|
except:
|
||
|
pass
|
||
|
|
||
|
|
||
|
def downgrade(migrate_engine):
|
||
|
try:
|
||
|
meta = MetaData(bind=migrate_engine)
|
||
|
peer = Table('server', meta, autoload=True)
|
||
|
peer.c.v6_subnet.drop()
|
||
|
except:
|
||
|
pass
|