#NEWLINE# def forwards( self , orm ) : #NEWLINE# #INDENT# db . delete_table ( 'hado_membership' ) #NEWLINE# db . create_table ( 'hado_contract' , ( ( 'status' , self . gf ( 'django.db.models.fields.CharField' ) ( max_length = 3 ) ) , ( 'end' , self . gf ( 'django.db.models.fields.DateField' ) ( ) ) , ( 'ctype' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( to = orm [ 'hado.ContractType' ] , null = True ) ) , ( 'start' , self . gf ( 'django.db.models.fields.DateField' ) ( ) ) , ( 'user' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( related_name = 'memberships' , null = True , to = orm [ 'hado.User' ] ) ) , ( 'id' , self . gf ( 'django.db.models.fields.AutoField' ) ( primary_key = True ) ) ) ) #NEWLINE# db . send_create_signal ( 'hado' , [ 'Contract' ] ) #NEWLINE# db . create_table ( 'hado_locker' , ( ( 'num' , self . gf ( 'django.db.models.fields.IntegerField' ) ( ) ) , ( 'id' , self . gf ( 'django.db.models.fields.AutoField' ) ( primary_key = True ) ) , ( 'user' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( related_name = 'locker' , null = True , to = orm [ 'hado.User' ] ) ) ) ) #NEWLINE# db . send_create_signal ( 'hado' , [ 'Locker' ] ) #NEWLINE# db . create_table ( 'hado_contracttype' , ( ( 'id' , self . gf ( 'django.db.models.fields.AutoField' ) ( primary_key = True ) ) , ( 'desc' , self . gf ( 'django.db.models.fields.CharField' ) ( max_length = 128 , null = True ) ) ) ) #NEWLINE# db . send_create_signal ( 'hado' , [ 'ContractType' ] ) #NEWLINE# db . add_column ( 'hado_user' , 'utype' , self . gf ( 'django.db.models.fields.CharField' ) ( default = 'MEM' , max_length = 3 ) , keep_default = False ) #NEWLINE# db . delete_column ( 'hado_payment' , 'category' ) #NEWLINE# db . delete_column ( 'hado_payment' , 'for_year' ) #NEWLINE# db . delete_column ( 'hado_payment' , 'membership_id' ) #NEWLINE# db . delete_column ( 'hado_payment' , 'for_month' ) #NEWLINE# db . add_column ( 'hado_payment' , 'contract' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( related_name = 'payments' , null = True , to = self [ 'hado.Contract' ] ) , keep_default = False ) #NEWLINE# db . add_column ( 'hado_payment' , 'amount' , self . gf ( 'django.db.models.fields.FloatField' ) ( default = 0.0 ) , keep_default = False ) #NEWLINE# db . alter_column ( 'hado_payment' , 'user_id' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( null = True , to = orm [ 'hado.User' ] ) )