dashboardobfuscationwireguard-vpn-setupwireguard-vpnwireguard-tunnelwireguard-dashboardwireguardwg-managervpnsite-to-site
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
478 B
22 lines
478 B
5 years ago
|
from sqlalchemy import *
|
||
|
from migrate import *
|
||
|
|
||
|
|
||
|
def upgrade(migrate_engine):
|
||
|
try:
|
||
|
meta = MetaData(bind=migrate_engine)
|
||
|
server = Table('server', meta, autoload=True)
|
||
|
subnet = Column('subnet', Text)
|
||
|
subnet.create(server)
|
||
|
except:
|
||
|
pass
|
||
|
|
||
|
|
||
|
def downgrade(migrate_engine):
|
||
|
try:
|
||
|
meta = MetaData(bind=migrate_engine)
|
||
|
server = Table('server', meta, autoload=True)
|
||
|
server.c.subnet.drop()
|
||
|
except:
|
||
|
pass
|