#NEWLINE# def upgrade( migrate_engine ) : #NEWLINE# #INDENT# meta = MetaData ( bind = migrate_engine ) #NEWLINE# quota_usages = Table ( 'quota_usages' , meta , autoload = True ) #NEWLINE# quota_usages . c . resource . alter ( nullable = False ) #NEWLINE# pci_devices = Table ( 'pci_devices' , meta , autoload = True ) #NEWLINE# if ( migrate_engine . name != 'ibm_db_sa' ) : #NEWLINE# #INDENT# pci_devices . c . deleted . alter ( nullable = True ) #NEWLINE# #UNINDENT# pci_devices . c . product_id . alter ( nullable = False ) #NEWLINE# pci_devices . c . vendor_id . alter ( nullable = False ) #NEWLINE# pci_devices . c . dev_type . alter ( nullable = False )