dashboardwireguard-vpn-setupwireguard-vpnwireguard-tunnelwireguard-dashboardwireguardwg-managervpnsite-to-siteobfuscation
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.
18 lines
428 B
18 lines
428 B
5 years ago
|
from sqlalchemy import Table, MetaData, String, Column, Text
|
||
|
|
||
|
|
||
|
def upgrade(migrate_engine):
|
||
|
try:
|
||
|
meta = MetaData(bind=migrate_engine)
|
||
|
account = Table('peer', meta, autoload=True)
|
||
|
dns = Column('dns', Text)
|
||
|
dns.create(account)
|
||
|
except:
|
||
|
pass
|
||
|
|
||
|
|
||
|
def downgrade(migrate_engine):
|
||
|
meta = MetaData(bind=migrate_engine)
|
||
|
dns = Table('peer', meta, autoload=True)
|
||
|
dns.c.email.drop()
|