Per-Arne Andersen
4 years ago
1 changed files with 20 additions and 0 deletions
@ -0,0 +1,20 @@ |
|||
from sqlalchemy import * |
|||
from migrate import * |
|||
|
|||
|
|||
def upgrade(migrate_engine): |
|||
try: |
|||
meta = MetaData(bind=migrate_engine) |
|||
server = Table('server', meta, autoload=True) |
|||
server.c.v6_subnet.alter(nullable=True) |
|||
except: |
|||
pass |
|||
|
|||
|
|||
def downgrade(migrate_engine): |
|||
try: |
|||
meta = MetaData(bind=migrate_engine) |
|||
server = Table('server', meta, autoload=True) |
|||
server.c.v6_subnet.alter(nullable=False) |
|||
except: |
|||
pass |
Loading…
Reference in new issue