#NEWLINE# def forwards( self , orm ) : #NEWLINE# #INDENT# db . delete_unique ( 'api_container' , [ 'formation_id' , 'port' ] ) #NEWLINE# db . delete_unique ( 'api_container' , [ 'app_id' , 'type' , 'num' ] ) #NEWLINE# db . delete_unique ( 'api_config' , [ 'app_id' , 'version' ] ) #NEWLINE# db . delete_unique ( 'api_formation' , [ 'owner_id' , 'id' ] ) #NEWLINE# db . delete_unique ( 'api_node' , [ 'formation_id' , 'id' ] ) #NEWLINE# db . delete_unique ( 'api_provider' , [ 'owner_id' , 'id' ] ) #NEWLINE# db . delete_unique ( 'api_layer' , [ 'formation_id' , 'id' ] ) #NEWLINE# db . delete_unique ( 'api_flavor' , [ 'owner_id' , 'id' ] ) #NEWLINE# db . delete_table ( 'api_flavor' ) #NEWLINE# db . delete_table ( 'api_layer' ) #NEWLINE# db . delete_table ( 'api_provider' ) #NEWLINE# db . delete_table ( 'api_node' ) #NEWLINE# db . delete_table ( 'api_formation' ) #NEWLINE# db . create_table ( 'api_cluster' , ( ( 'uuid' , self . gf ( 'api.fields.UuidField' ) ( unique = True , max_length = 32 , primary_key = True ) ) , ( 'created' , self . gf ( 'django.db.models.fields.DateTimeField' ) ( auto_now_add = True , blank = True ) ) , ( 'updated' , self . gf ( 'django.db.models.fields.DateTimeField' ) ( auto_now = True , blank = True ) ) , ( 'owner' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( to = orm [ 'auth.User' ] ) ) , ( 'id' , self . gf ( 'django.db.models.fields.CharField' ) ( unique = True , max_length = 128 ) ) , ( 'type' , self . gf ( 'django.db.models.fields.CharField' ) ( max_length = 16 ) ) , ( 'domain' , self . gf ( 'django.db.models.fields.CharField' ) ( max_length = 128 ) ) , ( 'hosts' , self . gf ( 'django.db.models.fields.CharField' ) ( max_length = 256 ) ) , ( 'auth' , self . gf ( 'django.db.models.fields.TextField' ) ( ) ) , ( 'options' , self . gf ( 'json_field.fields.JSONField' ) ( default = '{}' , blank = True ) ) ) ) #NEWLINE# db . send_create_signal ( 'api' , [ 'Cluster' ] ) #NEWLINE# db . alter_column ( 'api_release' , 'build_id' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( default = '5e5dba0d-a7fe-4019-b392-62b7b993f1a8' , to = orm [ 'api.Build' ] ) ) #NEWLINE# db . delete_column ( 'api_config' , 'version' ) #NEWLINE# db . create_unique ( 'api_config' , [ 'app_id' , 'uuid' ] ) #NEWLINE# db . delete_column ( 'api_container' , 'node_id' ) #NEWLINE# db . delete_column ( 'api_container' , 'status' ) #NEWLINE# db . delete_column ( 'api_container' , 'formation_id' ) #NEWLINE# db . delete_column ( 'api_container' , 'port' ) #NEWLINE# db . add_column ( 'api_container' , 'release' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( default = '5e5dba0d-a7fe-4019-b392-62b7b993f1a8' , to = orm [ 'api.Release' ] ) , keep_default = False ) #NEWLINE# db . add_column ( 'api_container' , 'state' , self . gf ( 'django.db.models.fields.CharField' ) ( default = 'initializing' , max_length = 64 ) , keep_default = False ) #NEWLINE# db . delete_column ( 'api_build' , 'procfile' ) #NEWLINE# db . delete_column ( 'api_build' , 'size' ) #NEWLINE# db . delete_column ( 'api_build' , 'url' ) #NEWLINE# db . delete_column ( 'api_build' , 'checksum' ) #NEWLINE# db . delete_column ( 'api_build' , 'dockerfile' ) #NEWLINE# db . delete_column ( 'api_build' , 'sha' ) #NEWLINE# db . delete_column ( 'api_build' , 'output' ) #NEWLINE# db . delete_column ( 'api_build' , 'config' ) #NEWLINE# db . delete_column ( 'api_app' , 'formation_id' ) #NEWLINE# db . delete_column ( 'api_app' , 'containers' ) #NEWLINE# db . add_column ( 'api_app' , 'cluster' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( default = '5e5dba0d-a7fe-4019-b392-62b7b993f1a8' , to = orm [ 'api.Cluster' ] ) , keep_default = False ) #NEWLINE# db . add_column ( 'api_app' , 'structure' , self . gf ( 'json_field.fields.JSONField' ) ( default = '{}' , blank = True ) , keep_default = False )