def backwards(self, orm): # Adding field 'Knight.of_the_round_table' db.add_column(u'southtut_knight', 'of_the_round_table', self.gf('django.db.models.fields.BooleanField')(default=datetime.datetime(2014, 6, 17, 0, 0)), keep_default=False) # Adding field 'Knight.name' db.add_column(u'southtut_knight', 'name', self.gf('django.db.models.fields.CharField')(default=datetime.datetime(2014, 6, 17, 0, 0), max_length=100), keep_default=False) # Adding field 'Knight.wherever' db.add_column(u'southtut_knight', 'wherever', self.gf('django.db.models.fields.CharField')(default='', max_length=100), keep_default=False) # Adding field 'Knight.dances_wherever' db.add_column(u'southtut_knight', 'dances_wherever', self.gf('django.db.models.fields.CharField')(default='', max_length=100), keep_default=False) # Deleting field 'Knight.first_name' db.delete_column(u'southtut_knight', 'first_name') # Deleting field 'Knight.last_name' db.delete_column(u'southtut_knight', 'last_name')
def backwards(self, orm): # Adding field 'Course.end_time' db.add_column(u'courses_course', 'end_time', self.gf('django.db.models.fields.DateField')(default=datetime.datetime(2014, 4, 19, 0, 0)), keep_default=False) # Adding field 'Course.start_time' db.add_column(u'courses_course', 'start_time', self.gf('django.db.models.fields.DateField')(default=datetime.datetime(2014, 4, 19, 0, 0)), keep_default=False) # Adding field 'Course.enable_applications' db.add_column(u'courses_course', 'enable_applications', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False) # Deleting field 'Course.application_until' db.delete_column(u'courses_course', 'application_until') # Deleting field 'Course.next_season_mail_list' db.delete_column(u'courses_course', 'next_season_mail_list') # Changing field 'Course.description' db.alter_column(u'courses_course', 'description', self.gf('django.db.models.fields.TextField')())
def backwards(self, orm): # Deleting field 'ReadingDocuments.reading' db.delete_column(u'wopa_submitter_readingdocuments', 'reading_id') # Adding M2M table for field documents on 'Submission' m2m_table_name = db.shorten_name(u'wopa_submitter_submission_documents') db.create_table(m2m_table_name, ( ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), ('submission', models.ForeignKey(orm[u'wopa_submitter.submission'], null=False)), ('submissiondocuments', models.ForeignKey(orm[u'wopa_submitter.submissiondocuments'], null=False)) )) db.create_unique(m2m_table_name, ['submission_id', 'submissiondocuments_id']) # Adding field 'Reading.file' db.add_column(u'wopa_submitter_reading', 'file', self.gf('django.db.models.fields.related.ForeignKey')(default=datetime.datetime(2014, 7, 21, 0, 0), to=orm['wopa_submitter.ReadingDocuments']), keep_default=False) # Deleting field 'SubmissionDocuments.submission' db.delete_column(u'wopa_submitter_submissiondocuments', 'submission_id') # Deleting field 'AssignmentDocuments.assignment' db.delete_column(u'wopa_submitter_assignmentdocuments', 'assignment_id') # Adding field 'Assignment.assignment_file' db.add_column(u'wopa_submitter_assignment', 'assignment_file', self.gf('django.db.models.fields.related.ForeignKey')(default=datetime.datetime(2014, 7, 21, 0, 0), to=orm['wopa_submitter.AssignmentDocuments']), keep_default=False)
def forwards(self, orm): # Adding field 'CodeToCompile.time_of_submission' db.add_column( u"onlinejudge_codetocompile", "time_of_submission", self.gf("django.db.models.fields.IntegerField")(null=True, blank=True), keep_default=False, ) # Adding field 'CodeToCompile.language' db.add_column( u"onlinejudge_codetocompile", "language", self.gf("django.db.models.fields.IntegerField")(default=1), keep_default=False, ) # Adding field 'Contest.time' db.add_column( u"onlinejudge_contest", "time", self.gf("django.db.models.fields.IntegerField")(default=datetime.datetime(2014, 3, 10, 0, 0)), keep_default=False, ) # Adding field 'Contest.start_time' db.add_column( u"onlinejudge_contest", "start_time", self.gf("django.db.models.fields.IntegerField")(default=datetime.datetime(2014, 3, 10, 0, 0)), keep_default=False, ) # Changing field 'Problem.statement' db.alter_column(u"onlinejudge_problem", "statement", self.gf("ckeditor.fields.RichTextField")())
def forwards(self, orm): # Adding model 'UserProfile' db.create_table(u'meeting_userprofile', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('user', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['auth.User'], unique=True)), ('picture', self.gf('django.db.models.fields.files.ImageField')(max_length=100, blank=True)), )) db.send_create_signal(u'meeting', ['UserProfile']) # Adding model 'Project' db.create_table(u'meeting_project', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('name', self.gf('django.db.models.fields.CharField')(max_length=128)), ('owner', self.gf('django.db.models.fields.related.ForeignKey')(related_name='proj_owner', to=orm['meeting.UserProfile'])), ('due_date', self.gf('django.db.models.fields.DateTimeField')(blank=True)), ('completed', self.gf('django.db.models.fields.BooleanField')(default=False)), )) db.send_create_signal(u'meeting', ['Project']) # Adding M2M table for field users on 'Project' m2m_table_name = db.shorten_name(u'meeting_project_users') db.create_table(m2m_table_name, ( ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), ('project', models.ForeignKey(orm[u'meeting.project'], null=False)), ('userprofile', models.ForeignKey(orm[u'meeting.userprofile'], null=False)) )) db.create_unique(m2m_table_name, ['project_id', 'userprofile_id']) # Adding model 'Note' db.create_table(u'meeting_note', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('project', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['meeting.Project'])), ('date_added', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 10, 11, 0, 0))), ('title', self.gf('django.db.models.fields.CharField')(max_length=128)), ('content', self.gf('django.db.models.fields.TextField')()), )) db.send_create_signal(u'meeting', ['Note']) # Adding model 'File' db.create_table(u'meeting_file', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('project', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['meeting.Project'])), ('date_added', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 10, 11, 0, 0))), ('title', self.gf('django.db.models.fields.CharField')(max_length=128)), ('file', self.gf('django.db.models.fields.files.FileField')(max_length=100)), )) db.send_create_signal(u'meeting', ['File']) # Adding model 'Meeting' db.create_table(u'meeting_meeting', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('project', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['meeting.Project'])), ('date_added', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 10, 11, 0, 0))), ('date_begin', self.gf('django.db.models.fields.DateTimeField')()), ('date_end', self.gf('django.db.models.fields.DateTimeField')()), ('title', self.gf('django.db.models.fields.CharField')(max_length=128)), ('place', self.gf('django.db.models.fields.CharField')(max_length=128)), ('description', self.gf('django.db.models.fields.TextField')()), )) db.send_create_signal(u'meeting', ['Meeting'])
def forwards(self, orm): # Adding field 'Photo.exposure_program' db.add_column(u'glair_photo', 'exposure_program', self.gf('django.db.models.fields.PositiveSmallIntegerField')(default=0), keep_default=False) # Adding field 'Photo.taken_on' db.add_column(u'glair_photo', 'taken_on', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 5, 17, 0, 0)), keep_default=False) # Adding field 'Photo.focal_length' db.add_column(u'glair_photo', 'focal_length', self.gf('django.db.models.fields.CharField')(default=datetime.datetime(2014, 5, 17, 0, 0), max_length=20), keep_default=False) # Adding field 'Photo.exposure_time' db.add_column(u'glair_photo', 'exposure_time', self.gf('django.db.models.fields.CharField')(default=0, max_length=20), keep_default=False) # Adding field 'Photo.fnumber' db.add_column(u'glair_photo', 'fnumber', self.gf('django.db.models.fields.CharField')(default=0, max_length=20), keep_default=False)
def forwards(self, orm): # Adding model 'Essay' db.create_table('pages_essay', ( ('name', self.gf('django.db.models.fields.CharField')(primary_key=True, max_length=200)), ('publish_date', self.gf('django.db.models.fields.DateField')(default=datetime.datetime(2000, 1, 1, 0, 0))), ('content', self.gf('django.db.models.fields.TextField')(default='No Content Found')), ('rank', self.gf('django.db.models.fields.IntegerField')(default=-1)), )) db.send_create_signal('pages', ['Essay']) # Adding model 'Biopic' db.create_table('pages_biopic', ( ('name', self.gf('django.db.models.fields.CharField')(primary_key=True, max_length=200)), ('publish_date', self.gf('django.db.models.fields.DateField')(default=datetime.datetime(2000, 1, 1, 0, 0))), ('content', self.gf('django.db.models.fields.TextField')(default='No Content Found')), ('rank', self.gf('django.db.models.fields.IntegerField')(default=-1)), )) db.send_create_signal('pages', ['Biopic']) # Adding model 'Personal' db.create_table('pages_personal', ( ('name', self.gf('django.db.models.fields.CharField')(primary_key=True, max_length=200)), ('publish_date', self.gf('django.db.models.fields.DateField')(default=datetime.datetime(2000, 1, 1, 0, 0))), ('content', self.gf('django.db.models.fields.TextField')(default='No Content Found')), ('rank', self.gf('django.db.models.fields.IntegerField')(default=-1)), )) db.send_create_signal('pages', ['Personal'])
def forwards(self, orm): # Adding model 'Expertise' db.create_table(u'Guess_expertise', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('expert', self.gf('django.db.models.fields.related.ForeignKey')(related_name='expert', to=orm['Guess.Person'])), ('tag', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['Guess.GameTag'])), ('score', self.gf('django.db.models.fields.FloatField')(default=0)), )) db.send_create_signal(u'Guess', ['Expertise']) # Adding field 'Game.weight_home' db.add_column(u'Guess_game', 'weight_home', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False) # Adding field 'Game.weight_away' db.add_column(u'Guess_game', 'weight_away', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False) # Adding field 'Betting.buy_time' db.add_column(u'Guess_betting', 'buy_time', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 11, 26, 0, 0)), keep_default=False) # Adding field 'Betting.sell_time' db.add_column(u'Guess_betting', 'sell_time', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 11, 26, 0, 0)), keep_default=False) # Adding field 'Betting.win' db.add_column(u'Guess_betting', 'win', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False)
def forwards(self, orm): # Adding model 'Language' db.create_table( u"poems_language", ( (u"id", self.gf("django.db.models.fields.AutoField")(primary_key=True)), ("name", self.gf("django.db.models.fields.CharField")(max_length=100)), ("photo", self.gf("django.db.models.fields.files.ImageField")(max_length=100, blank=True)), ), ) db.send_create_signal(u"poems", ["Language"]) # Adding model 'Poem' db.create_table( u"poems_poem", ( (u"id", self.gf("django.db.models.fields.AutoField")(primary_key=True)), ("title", self.gf("django.db.models.fields.CharField")(max_length=200)), ("owner", self.gf("django.db.models.fields.related.ForeignKey")(to=orm["auth.User"])), ("pub_date", self.gf("django.db.models.fields.DateTimeField")(auto_now=True, blank=True)), ("rating", self.gf("django.db.models.fields.IntegerField")(default=0, null=True, blank=True)), ("type_of_literary", self.gf("django.db.models.fields.CharField")(default="POEM", max_length=5)), ("owner_accept_verse", self.gf("django.db.models.fields.BooleanField")(default=True)), ("max_verses", self.gf("django.db.models.fields.IntegerField")(null=True, blank=True)), ("can_be_published", self.gf("django.db.models.fields.BooleanField")(default=True)), ("enough_pluses", self.gf("django.db.models.fields.IntegerField")(default=5, null=True, blank=True)), ("password", self.gf("django.db.models.fields.CharField")(max_length=15, null=True, blank=True)), ( "language", self.gf("django.db.models.fields.related.ForeignKey")( to=orm["poems.Language"], null=True, on_delete=models.SET_NULL, blank=True ), ), ( "end_date", self.gf("django.db.models.fields.DateTimeField")(default=datetime.datetime(2014, 10, 18, 0, 0)), ), ), ) db.send_create_signal(u"poems", ["Poem"]) # Adding model 'Verse' db.create_table( u"poems_verse", ( (u"id", self.gf("django.db.models.fields.AutoField")(primary_key=True)), ("author", self.gf("django.db.models.fields.related.ForeignKey")(to=orm["auth.User"])), ("poem", self.gf("django.db.models.fields.related.ForeignKey")(to=orm["poems.Poem"])), ("content", self.gf("django.db.models.fields.TextField")()), ("rating", self.gf("django.db.models.fields.IntegerField")(default=0, null=True, blank=True)), ("is_accepted", self.gf("django.db.models.fields.BooleanField")(default=False)), ( "pub_date", self.gf("django.db.models.fields.DateTimeField")( default=datetime.datetime(2014, 10, 18, 0, 0), auto_now=True, blank=True ), ), ), ) db.send_create_signal(u"poems", ["Verse"])
def forwards(self, orm): # Adding model 'Message' db.create_table(u'mymessages_message', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('subject', self.gf('django.db.models.fields.CharField')(max_length=200)), ('message_type', self.gf('django.db.models.fields.CharField')(max_length=200)), ('body', self.gf('django.db.models.fields.TextField')()), ('start_on', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 9, 19, 0, 0))), ('expire_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 10, 3, 0, 0), null=True)), ('btn_text', self.gf('django.db.models.fields.CharField')(default='Okay', max_length=100)), )) db.send_create_signal(u'mymessages', ['Message']) # Adding M2M table for field group on 'Message' m2m_table_name = db.shorten_name(u'mymessages_message_group') db.create_table(m2m_table_name, ( ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), ('message', models.ForeignKey(orm[u'mymessages.message'], null=False)), ('group', models.ForeignKey(orm[u'auth.group'], null=False)) )) db.create_unique(m2m_table_name, ['message_id', 'group_id']) # Adding model 'MessageInfo' db.create_table(u'mymessages_messageinfo', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['myjobs.User'])), ('message', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['mymessages.Message'])), ('read', self.gf('django.db.models.fields.BooleanField')(default=False, db_index=True)), ('read_at', self.gf('django.db.models.fields.DateTimeField')(null=True)), ('expired', self.gf('django.db.models.fields.BooleanField')(default=False, db_index=True)), ('expired_on', self.gf('django.db.models.fields.DateTimeField')(null=True)), )) db.send_create_signal(u'mymessages', ['MessageInfo'])
def forwards(self, orm): # Adding model 'Country' db.create_table(u'discounts_country', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('created', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2016, 7, 23, 0, 0), auto_now_add=True, null=True, blank=True)), ('changed', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, null=True, blank=True)), ('code', self.gf('django.db.models.fields.CharField')(default='qwe', unique=True, max_length=3, db_index=True)), ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=80)), )) db.send_create_signal(u'discounts', ['Country']) # Adding model 'Company' db.create_table(u'discounts_company', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('created', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2016, 7, 23, 0, 0), auto_now_add=True, null=True, blank=True)), ('changed', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, null=True, blank=True)), ('name', self.gf('django.db.models.fields.CharField')(max_length=80)), ('country', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['discounts.Country'])), )) db.send_create_signal(u'discounts', ['Company']) # Adding unique constraint on 'Company', fields ['name', 'country'] db.create_unique(u'discounts_company', ['name', 'country_id']) # Adding model 'Negotiator' db.create_table(u'discounts_negotiator', ( (u'user_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['auth.User'], unique=True, primary_key=True)), ('comment', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), )) db.send_create_signal(u'discounts', ['Negotiator']) # Adding model 'Agreement' db.create_table(u'discounts_agreement', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('date_start', self.gf('django.db.models.fields.DateField')()), ('date_end', self.gf('django.db.models.fields.DateField')()), ('created', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2016, 7, 23, 0, 0), auto_now_add=True, null=True, blank=True)), ('changed', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, null=True, blank=True)), ('company', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['discounts.Company'])), ('negotiator', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['discounts.Negotiator'])), ('export_turnover', self.gf('django.db.models.fields.FloatField')(default=0, blank=True)), ('import_turnover', self.gf('django.db.models.fields.FloatField')(default=0, blank=True)), )) db.send_create_signal(u'discounts', ['Agreement']) # Adding unique constraint on 'Agreement', fields ['company', 'date_start', 'date_end'] db.create_unique(u'discounts_agreement', ['company_id', 'date_start', 'date_end']) # Adding model 'Period' db.create_table(u'discounts_period', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('date_start', self.gf('django.db.models.fields.DateField')()), ('date_end', self.gf('django.db.models.fields.DateField')()), ('created', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2016, 7, 23, 0, 0), auto_now_add=True, null=True, blank=True)), ('changed', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, null=True, blank=True)), ('agreement', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['discounts.Agreement'])), ('status', self.gf('django.db.models.fields.PositiveSmallIntegerField')()), ('is_last', self.gf('django.db.models.fields.BooleanField')(default=False)), )) db.send_create_signal(u'discounts', ['Period'])
def forwards(self, orm): # Adding field 'Currency.is_active' db.add_column(u'api_currency', 'is_active', self.gf('django.db.models.fields.BooleanField')(default=True), keep_default=False) # Adding field 'Currency.last_modified' db.add_column(u'api_currency', 'last_modified', self.gf('django.db.models.fields.DateField')(default=datetime.datetime(2014, 3, 21, 0, 0), auto_now=True, blank=True), keep_default=False) # Adding field 'EntryType.last_modified' db.add_column(u'api_entrytype', 'last_modified', self.gf('django.db.models.fields.DateField')(default=datetime.datetime(2014, 3, 21, 0, 0), auto_now=True, blank=True), keep_default=False) # Adding field 'Budget.last_modified' db.add_column(u'api_budget', 'last_modified', self.gf('django.db.models.fields.DateField')(default=datetime.datetime(2014, 3, 21, 0, 0), auto_now=True, blank=True), keep_default=False) # Adding field 'Entry.last_modified' db.add_column(u'api_entry', 'last_modified', self.gf('django.db.models.fields.DateField')(default=datetime.datetime(2014, 3, 21, 0, 0), auto_now=True, blank=True), keep_default=False)
def forwards(self, orm): # Adding field 'Wall.time_updated' db.add_column(u'walls_wall', 'time_updated', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(1950, 1, 1, 0, 0), auto_now=True, blank=True), keep_default=False) # Adding field 'Wall.cache_updated' db.add_column(u'walls_wall', 'cache_updated', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(1950, 1, 1, 0, 0), auto_now=True, blank=True), keep_default=False) # Adding M2M table for field notification_pages on 'Wall' m2m_table_name = db.shorten_name(u'walls_wall_notification_pages') db.create_table(m2m_table_name, ( ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), ('wall', models.ForeignKey(orm[u'walls.wall'], null=False)), ('page', models.ForeignKey(orm[u'users.page'], null=False)) )) db.create_unique(m2m_table_name, ['wall_id', 'page_id']) # Adding M2M table for field notification_pages on 'Post' m2m_table_name = db.shorten_name(u'walls_post_notification_pages') db.create_table(m2m_table_name, ( ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), ('post', models.ForeignKey(orm[u'walls.post'], null=False)), ('page', models.ForeignKey(orm[u'users.page'], null=False)) )) db.create_unique(m2m_table_name, ['post_id', 'page_id'])
def forwards(self, orm): # Adding model 'TalePartComment' db.create_table(u'Teller_talepartcomment', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('tale_part', self.gf('django.db.models.fields.related.ForeignKey')(related_name='comments', to=orm['Teller.TalePart'])), ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='comments', to=orm['Teller.Profile'])), ('content', self.gf('ckeditor.fields.RichTextField')()), ('created_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2015, 3, 29, 0, 0), auto_now_add=True, blank=True)), )) db.send_create_signal(u'Teller', ['TalePartComment']) # Adding field 'TaleLinkPrecondition.created_at' db.add_column(u'Teller_talelinkprecondition', 'created_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2015, 3, 29, 0, 0), auto_now_add=True, blank=True), keep_default=False) # Adding field 'TaleLinkConsequence.created_at' db.add_column(u'Teller_talelinkconsequence', 'created_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2015, 3, 29, 0, 0), auto_now_add=True, blank=True), keep_default=False) # Adding field 'TaleLink.created_at' db.add_column(u'Teller_talelink', 'created_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2015, 3, 29, 0, 0), auto_now_add=True, blank=True), keep_default=False) # Adding field 'TaleVariable.created_at' db.add_column(u'Teller_talevariable', 'created_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2015, 3, 29, 0, 0), auto_now_add=True, blank=True), keep_default=False)
def forwards(self, orm): # Deleting field 'VCMBirthRecord.api_request_guid' db.delete_column(u'source_data_vcmbirthrecord', 'api_request_guid') # Adding field 'VCMBirthRecord.request_guid' db.add_column(u'source_data_vcmbirthrecord', 'request_guid', self.gf('django.db.models.fields.CharField')(default=1, max_length=255), keep_default=False) # Adding field 'VCMBirthRecord.date' db.add_column(u'source_data_vcmbirthrecord', 'date', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 9, 5, 0, 0)), keep_default=False) # Adding field 'VCMSettlement.date' db.add_column(u'source_data_vcmsettlement', 'date', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 9, 5, 0, 0)), keep_default=False) # Deleting field 'VCMSummaryNew.api_request_guid' db.delete_column(u'source_data_vcmsummarynew', 'api_request_guid') # Adding field 'VCMSummaryNew.request_guid' db.add_column(u'source_data_vcmsummarynew', 'request_guid', self.gf('django.db.models.fields.CharField')(default=1, max_length=255), keep_default=False) # Adding field 'VCMSummaryNew.created_at' db.add_column(u'source_data_vcmsummarynew', 'created_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 9, 5, 0, 0)), keep_default=False)
def forwards(self, orm): # Adding model 'Accommodation' db.create_table(u'Accommodations_accommodation', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('name', self.gf('django.db.models.fields.CharField')(max_length=50)), ('description', self.gf('django.db.models.fields.TextField')(default='', max_length=500)), ('room_size', self.gf('django.db.models.fields.CharField')(max_length=3)), ('room_type', self.gf('django.db.models.fields.CharField')(max_length=3)), ('main_photo', self.gf('django.db.models.fields.files.ImageField')(max_length=100, null=True, blank=True)), ('price_per_day', self.gf('django.db.models.fields.FloatField')(default=0.0)), ('price_per_month', self.gf('django.db.models.fields.FloatField')(default=0.0)), )) db.send_create_signal(u'Accommodations', ['Accommodation']) # Adding model 'AccommodationPhoto' db.create_table(u'Accommodations_accommodationphoto', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('title', self.gf('django.db.models.fields.CharField')(default='', max_length=140, blank=True)), ('photo', self.gf('django.db.models.fields.files.ImageField')(max_length=100, null=True, blank=True)), ('accommodation', self.gf('django.db.models.fields.related.ForeignKey')(related_name='booking_accommodation', to=orm['Accommodations.Accommodation'])), )) db.send_create_signal(u'Accommodations', ['AccommodationPhoto']) # Adding model 'Booking' db.create_table(u'Accommodations_booking', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('checkin_date', self.gf('django.db.models.fields.DateField')(default=datetime.datetime(2013, 12, 10, 0, 0))), ('checkout_date', self.gf('django.db.models.fields.DateField')(default=datetime.datetime(2013, 12, 11, 0, 0))), ('status', self.gf('django.db.models.fields.CharField')(default='WFA', max_length=3)), ('tenant', self.gf('django.db.models.fields.related.ForeignKey')(related_name='booking_tenant', to=orm['auth.User'])), ('accommodation', self.gf('django.db.models.fields.related.ForeignKey')(related_name='booking_of_accommodation', to=orm['Accommodations.Accommodation'])), ('price', self.gf('django.db.models.fields.FloatField')(default=0.0)), )) db.send_create_signal(u'Accommodations', ['Booking'])
def forwards(self, orm): # Deleting field 'PostComment.created' db.delete_column(u'accounts_postcomment', 'created') # Adding field 'PostComment.ts_created' db.add_column(u'accounts_postcomment', 'ts_created', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 8, 19, 0, 0), auto_now_add=True, blank=True), keep_default=False) # Deleting field 'Post.created' db.delete_column(u'accounts_post', 'created') # Deleting field 'Post.changed' db.delete_column(u'accounts_post', 'changed') # Adding field 'Post.ts_created' db.add_column(u'accounts_post', 'ts_created', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 8, 19, 0, 0), auto_now_add=True, blank=True), keep_default=False) # Adding field 'Post.ts_changed' db.add_column(u'accounts_post', 'ts_changed', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 8, 19, 0, 0), auto_now=True, auto_now_add=True, blank=True), keep_default=False) # Adding field 'Post.ts_public' db.add_column(u'accounts_post', 'ts_public', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 8, 19, 0, 0)), keep_default=False) # Adding field 'Post.is_public' db.add_column(u'accounts_post', 'is_public', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False)
def forwards(self, orm): # Adding model 'Mensaje' db.create_table(u'administrador_mensaje', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('nombre', self.gf('django.db.models.fields.CharField')(max_length=100)), ('subject', self.gf('django.db.models.fields.TextField')()), ('email', self.gf('django.db.models.fields.EmailField')(max_length=75)), ('mensaje', self.gf('django.db.models.fields.TextField')()), ('fecha', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 12, 30, 0, 0))), )) db.send_create_signal(u'administrador', ['Mensaje']) # Adding model 'Evento' db.create_table(u'administrador_evento', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('imagen', self.gf(u'sorl.thumbnail.fields.ImageField')(max_length=100)), ('lugar', self.gf('django.db.models.fields.CharField')(max_length=60)), ('servicio', self.gf('django.db.models.fields.CharField')(max_length=100)), ('posicion', self.gf('django.db.models.fields.IntegerField')(default=1)), ('activo', self.gf('django.db.models.fields.BooleanField')(default=True)), )) db.send_create_signal(u'administrador', ['Evento']) # Adding model 'Email' db.create_table(u'administrador_email', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('sender', self.gf('django.db.models.fields.CharField')(max_length=150)), ('recipient', self.gf('django.db.models.fields.CharField')(max_length=150)), ('subject', self.gf('django.db.models.fields.CharField')(max_length=200)), ('body', self.gf('django.db.models.fields.TextField')()), ('nattachments', self.gf('django.db.models.fields.IntegerField')(default=0)), ('fecha', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 12, 30, 0, 0))), )) db.send_create_signal(u'administrador', ['Email'])
def forwards(self, orm): # Adding model 'PrintOrder' db.create_table('order_printorder', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])), ('up_file', self.gf('django.db.models.fields.files.FileField')(max_length=100)), ('file_name', self.gf('django.db.models.fields.TextField')(max_length=250)), ('time', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2015, 6, 8, 0, 0))), ('status', self.gf('django.db.models.fields.IntegerField')()), ('color', self.gf('django.db.models.fields.IntegerField')()), ('method', self.gf('django.db.models.fields.IntegerField')()), ('comment', self.gf('django.db.models.fields.TextField')()), )) db.send_create_signal('order', ['PrintOrder']) # Adding model 'TrialOrder' db.create_table('order_trialorder', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('name', self.gf('django.db.models.fields.CharField')(max_length=50)), ('phone', self.gf('django.db.models.fields.CharField')(max_length=50)), ('time', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2015, 6, 8, 0, 0))), ('building', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dashboard.Building'])), ('up_file', self.gf('django.db.models.fields.files.FileField')(max_length=100)), ('file_name', self.gf('django.db.models.fields.TextField')(max_length=250)), ('status', self.gf('django.db.models.fields.IntegerField')()), )) db.send_create_signal('order', ['TrialOrder'])
def forwards(self, orm): # Adding model 'Friends' db.create_table(u'users_friends', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('created_on', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 1, 14, 0, 0), auto_now_add=True, blank=True)), ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='friend_creator_set', to=orm['auth.User'])), ('friend', self.gf('django.db.models.fields.related.ForeignKey')(related_name='friend_set', to=orm['auth.User'])), ('display_name', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True)), )) db.send_create_signal(u'users', ['Friends']) # Adding unique constraint on 'Friends', fields ['user', 'friend'] db.create_unique(u'users_friends', ['user_id', 'friend_id']) # Adding model 'UserProfile' db.create_table(u'users_userprofile', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('created_on', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 1, 14, 0, 0), auto_now_add=True, blank=True)), ('user', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['auth.User'], unique=True)), ('score', self.gf('django.db.models.fields.IntegerField')(default=0, null=True, blank=True)), ('phone_number', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True)), ('facebook_user', self.gf('django.db.models.fields.BooleanField')(default=False)), ('last_activity', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 1, 14, 0, 0), auto_now_add=True, blank=True)), ('device_token', self.gf('django.db.models.fields.CharField')(default='', max_length=255, null=True)), ('privacy', self.gf('django.db.models.fields.IntegerField')(default=0)), ('sent_challenges', self.gf('django.db.models.fields.IntegerField')(default=0)), )) db.send_create_signal(u'users', ['UserProfile'])
def forwards(self, orm): # Adding model 'OrderPackageItem' db.create_table('satchmo_ship_orderpackageitem', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('order', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['shop.Order'])), ('order_item', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['shop.OrderItem'], blank=True)), ('quantity', self.gf('django.db.models.fields.DecimalField')(max_digits=18, decimal_places=6)), )) db.send_create_signal('satchmo_ship', ['OrderPackageItem']) # Adding model 'OrderPackage' db.create_table('satchmo_ship_orderpackage', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('order', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['shop.Order'])), ('created', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2015, 7, 6, 0, 0), auto_now_add=True, blank=True)), ('ship_date', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2015, 7, 6, 0, 0), null=True, blank=True)), ('width', self.gf('django.db.models.fields.DecimalField')(null=True, max_digits=6, decimal_places=2, blank=True)), ('length', self.gf('django.db.models.fields.DecimalField')(null=True, max_digits=6, decimal_places=2, blank=True)), ('height', self.gf('django.db.models.fields.DecimalField')(null=True, max_digits=6, decimal_places=2, blank=True)), ('weight_units', self.gf('django.db.models.fields.CharField')(max_length=3, null=True, blank=True)), ('dimension_units', self.gf('django.db.models.fields.CharField')(max_length=3, null=True, blank=True)), ('tracking', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)), ('notes', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), )) db.send_create_signal('satchmo_ship', ['OrderPackage']) # Adding M2M table for field order_package_items on 'OrderPackage' m2m_table_name = db.shorten_name('satchmo_ship_orderpackage_order_package_items') db.create_table(m2m_table_name, ( ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), ('orderpackage', models.ForeignKey(orm['satchmo_ship.orderpackage'], null=False)), ('orderpackageitem', models.ForeignKey(orm['satchmo_ship.orderpackageitem'], null=False)) )) db.create_unique(m2m_table_name, ['orderpackage_id', 'orderpackageitem_id'])
def backwards(self, orm): # Adding field 'HitCount.created' db.add_column( u"pageviews_hitcount", "created", self.gf("django.db.models.fields.DateTimeField")( auto_now_add=True, default=datetime.datetime(2014, 3, 3, 0, 0), blank=True ), keep_default=False, ) # Adding field 'HitCount.modified' db.add_column( u"pageviews_hitcount", "modified", self.gf("django.db.models.fields.DateTimeField")( auto_now=True, default=datetime.datetime(2014, 3, 3, 0, 0), blank=True ), keep_default=False, ) # Deleting field 'HitCount.created_at' db.delete_column("pageviews_hitcount", "created_at") # Deleting field 'HitCount.updated_at' db.delete_column("pageviews_hitcount", "updated_at") # Deleting field 'HitCount.content_type' db.delete_column("pageviews_hitcount", "content_type_id") # Deleting field 'HitCount.object_id' db.delete_column("pageviews_hitcount", "object_id") # Deleting field 'HitCount.for_date' db.delete_column("pageviews_hitcount", "for_date")
def backwards(self, orm): db.rename_table('project_billing_rawstatistics', 'project_billing_raw_statistics') db.rename_table('project_billing_rawstatisticsindex', 'user_billing_raw_statistics_index') db.create_index('user_billing_raw_statistics_index', ['has_data']) db.create_index('user_billing_raw_statistics_index', ['billed']) db.create_index('user_billing_raw_statistics_index', ['fetched']) db.rename_table('user_billing_raw_statistics_index', 'project_billing_raw_statistics_index') db.add_column('project_billing_raw_statistics_index', 'month', self.gf('django.db.models.fields.IntegerField')(default=datetime.datetime(2014, 7, 14, 0, 0).month), keep_default=False) db.add_column('project_billing_raw_statistics_index', 'year', self.gf('django.db.models.fields.IntegerField')(default=datetime.datetime(2014, 7, 14, 0, 0).year), keep_default=False) db.delete_unique('project_billing_raw_statistics_index', ['from_ts', 'until_ts', 'project_id', 'meter']) db.create_unique('project_billing_raw_statistics_index', ['project_id', 'month', 'meter', 'year']) db.rename_column('project_billing_raw_statistics_index', 'project_id', 'user_id') db.rename_table('project_billing_raw_statistics_index', 'user_billing_raw_statistics_index') db.create_index('user_billing_raw_statistics_index', ['user_id', 'month', 'meter', 'year']) db.rename_table('user_billing_raw_statistics_index', 'project_billing_raw_statistics_index') db.rename_column('project_billing_raw_statistics_index', 'user_id', 'project_id')
def forwards(self, orm): # Adding model 'ActualExpense' db.create_table('converts_actualexpense', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='actual_expenses', to=orm['auth.User'])), ('size', self.gf('django.db.models.fields.DecimalField')(default=0, max_digits=20, decimal_places=2)), ('date', self.gf('django.db.models.fields.DateField')(default=datetime.datetime(2013, 11, 20, 0, 0))), ('description', self.gf('django.db.models.fields.CharField')(max_length=255)), ('regular_expense', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='actual_expenses', null=True, to=orm['converts.Expense'])), )) db.send_create_signal('converts', ['ActualExpense']) # Adding model 'Goal' db.create_table('converts_goal', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='goals', to=orm['auth.User'])), ('name', self.gf('django.db.models.fields.CharField')(max_length=200)), ('price', self.gf('django.db.models.fields.DecimalField')(default=0, max_digits=20, decimal_places=2)), ('saved', self.gf('django.db.models.fields.DecimalField')(default=0, max_digits=20, decimal_places=2)), ('start_date', self.gf('django.db.models.fields.DateField')(default=datetime.datetime(2013, 11, 20, 0, 0))), ('end_date', self.gf('django.db.models.fields.DateField')(null=True, blank=True)), ('payment_size', self.gf('django.db.models.fields.DecimalField')(default=0, max_digits=20, decimal_places=2)), ('payment_periodicity', self.gf('django.db.models.fields.CharField')(default='f', max_length=50)), )) db.send_create_signal('converts', ['Goal']) # Changing field 'Expense.end_date' db.alter_column('converts_expense', 'end_date', self.gf('django.db.models.fields.DateField')(null=True)) # Changing field 'Expense.start_date' db.alter_column('converts_expense', 'start_date', self.gf('django.db.models.fields.DateField')())
def forwards(self, orm): # Adding model 'GamecoachProfile' db.create_table(u'profiles_gamecoachprofile', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('user', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['auth.user'], unique=True)), ('roles', self.gf('django.db.models.fields.CharField')(max_length=512, null=True, blank=True)), ('regions', self.gf('django.db.models.fields.CharField')(max_length=512, null=True, blank=True)), ('availability', self.gf('django.db.models.fields.CharField')(max_length=512, null=True, blank=True)), ('data', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), ('created', self.gf('django.db.models.fields.DateField')(default=datetime.datetime(2014, 8, 1, 0, 0), blank=True)), ('updated', self.gf('django.db.models.fields.DateField')(default=datetime.datetime(2014, 8, 1, 0, 0), blank=True)), )) db.send_create_signal(u'profiles', ['GamecoachProfile']) # Adding model 'GamecoachProfileStudent' db.create_table(u'profiles_gamecoachprofilestudent', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('user', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['auth.user'], unique=True)), ('roles', self.gf('django.db.models.fields.CharField')(max_length=512, null=True, blank=True)), ('regions', self.gf('django.db.models.fields.CharField')(max_length=512, null=True, blank=True)), ('availability', self.gf('django.db.models.fields.CharField')(max_length=512, null=True, blank=True)), ('data', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), ('created', self.gf('django.db.models.fields.DateField')(default=datetime.datetime(2014, 8, 1, 0, 0), blank=True)), ('updated', self.gf('django.db.models.fields.DateField')(default=datetime.datetime(2014, 8, 1, 0, 0), blank=True)), )) db.send_create_signal(u'profiles', ['GamecoachProfileStudent']) # Adding model 'ProfilePicture' db.create_table(u'profiles_profilepicture', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('user', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['auth.user'], unique=True)), ('image', self.gf('django.db.models.fields.files.ImageField')(max_length=100)), ('created', self.gf('django.db.models.fields.DateField')(default=datetime.datetime(2014, 8, 1, 0, 0), blank=True)), )) db.send_create_signal(u'profiles', ['ProfilePicture'])
def forwards(self, orm): # Adding field 'Entry.description' db.add_column(u'kinopom_entry', 'description', self.gf('django.db.models.fields.TextField')(default='', max_length=50000, blank=True), keep_default=False) # Adding field 'Entry.views' db.add_column(u'kinopom_entry', 'views', self.gf('django.db.models.fields.IntegerField')(default=0, blank=True), keep_default=False) # Adding field 'Entry.likes' db.add_column(u'kinopom_entry', 'likes', self.gf('django.db.models.fields.IntegerField')(default=0, blank=True), keep_default=False) # Adding field 'Entry.date' db.add_column(u'kinopom_entry', 'date', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 11, 6, 0, 0), auto_now=True, blank=True), keep_default=False) # Adding field 'Entry.last_edit_date' db.add_column(u'kinopom_entry', 'last_edit_date', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 11, 6, 0, 0), auto_now=True, blank=True), keep_default=False) # Adding field 'Entry.is_active' db.add_column(u'kinopom_entry', 'is_active', self.gf('django.db.models.fields.BooleanField')(default=True), keep_default=False) # Adding field 'Entry.is_delete' db.add_column(u'kinopom_entry', 'is_delete', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False)
def backwards(self, orm): # Adding field 'Tag.deleted_at' db.add_column(u'tag', 'deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True), keep_default=False) # Adding field 'Tag.deleted_by' db.add_column(u'tag', 'deleted_by', self.gf('django.db.models.fields.related.ForeignKey')(related_name='deleted_tags', null=True, to=orm['auth.User'], blank=True), keep_default=False) # Deleting field 'Tag.added_at' db.delete_column(u'tag', 'added_at') # Deleting field 'Tag.updated_at' db.delete_column(u'tag', 'updated_at') # Adding field 'Post.post_source_name' db.add_column(u'post', 'post_source_name', self.gf('django.db.models.fields.CharField')(default=datetime.datetime(2014, 8, 9, 0, 0), max_length=64), keep_default=False) # Adding field 'Post.post_source_url' db.add_column(u'post', 'post_source_url', self.gf('django.db.models.fields.CharField')(default=datetime.datetime(2014, 8, 9, 0, 0), max_length=1024), keep_default=False) # Adding field 'Post.deleted_by' db.add_column(u'post', 'deleted_by', self.gf('django.db.models.fields.related.ForeignKey')(related_name='deleted_posts', null=True, to=orm['auth.User'], blank=True), keep_default=False) # Adding field 'Post.deleted_at' db.add_column(u'post', 'deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True), keep_default=False) # Deleting field 'Post.updated_at' db.delete_column(u'post', 'updated_at') # Changing field 'Post.added_at' db.alter_column(u'post', 'added_at', self.gf('django.db.models.fields.DateTimeField')()) # Adding field 'Comment.deleted_at' db.add_column(u'comment', 'deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True), keep_default=False) # Adding field 'Comment.deleted_by' db.add_column(u'comment', 'deleted_by', self.gf('django.db.models.fields.related.ForeignKey')(related_name='deleted_comments', null=True, to=orm['auth.User'], blank=True), keep_default=False) # Deleting field 'Comment.updated_at' db.delete_column(u'comment', 'updated_at') # Changing field 'Comment.added_at' db.alter_column(u'comment', 'added_at', self.gf('django.db.models.fields.DateTimeField')())
def forwards(self, orm): # Adding model 'Category' db.create_table(u'blog_category', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('name', self.gf('django.db.models.fields.CharField')(max_length=255)), ('created', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 3, 8, 0, 0), auto_now_add=True, null=True, blank=True)), ('modified', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, null=True, blank=True)), )) db.send_create_signal(u'blog', ['Category']) # Adding model 'Page' db.create_table(u'blog_page', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('parent', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['blog.Page'], null=True, blank=True)), ('status', self.gf('django.db.models.fields.IntegerField')(default=0, db_index=True)), ('title', self.gf('django.db.models.fields.CharField')(max_length=255)), ('excerpt', self.gf('django.db.models.fields.CharField')(max_length=255)), ('slug', self.gf('django.db.models.fields.CharField')(max_length=255)), ('permalink', self.gf('django.db.models.fields.CharField')(max_length=255)), ('description', self.gf('django.db.models.fields.TextField')(default=None, blank=True)), ('content', self.gf('django.db.models.fields.TextField')(default=None, blank=True)), ('created', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 3, 8, 0, 0), auto_now_add=True, null=True, blank=True)), ('modified', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, null=True, blank=True)), ('published', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, null=True, blank=True)), )) db.send_create_signal(u'blog', ['Page']) # Adding model 'Post' db.create_table(u'blog_post', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('category', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['blog.Category'])), ('status', self.gf('django.db.models.fields.IntegerField')(default=0, db_index=True)), ('title', self.gf('django.db.models.fields.CharField')(max_length=255)), ('excerpt', self.gf('django.db.models.fields.CharField')(max_length=255)), ('slug', self.gf('django.db.models.fields.CharField')(max_length=255)), ('permalink', self.gf('django.db.models.fields.CharField')(max_length=255)), ('description', self.gf('django.db.models.fields.TextField')(default=None, blank=True)), ('content', self.gf('django.db.models.fields.TextField')(default=None, blank=True)), ('created', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 3, 8, 0, 0), auto_now_add=True, null=True, blank=True)), ('modified', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, null=True, blank=True)), ('published', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, null=True, blank=True)), )) db.send_create_signal(u'blog', ['Post'])
def backwards(self, orm): # Adding field 'Techevent.time_address' db.add_column('techvents_techevent', 'time_address', self.gf('django.db.models.fields.TimeField')(null=True, blank=True), keep_default=False) # Adding field 'Techevent.description' db.add_column('techvents_techevent', 'description', self.gf('django.db.models.fields.TextField')(null=True, blank=True), keep_default=False) # Adding field 'Techevent.image' db.add_column('techvents_techevent', 'image', self.gf('django.db.models.fields.files.ImageField')(max_length=100, null=True, blank=True), keep_default=False) # Adding field 'Techevent.created_on' db.add_column('techvents_techevent', 'created_on', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 1, 20, 0, 0), auto_now_add=True, blank=True), keep_default=False) # Adding field 'Techevent.contact_email' db.add_column('techvents_techevent', 'contact_email', self.gf('django.db.models.fields.EmailField')(max_length=75, null=True, blank=True), keep_default=False) # Adding field 'Techevent.id' db.add_column('techvents_techevent', 'id', self.gf('django.db.models.fields.AutoField')(default=1, primary_key=True), keep_default=False) # Adding field 'Techevent.location_string' db.add_column('techvents_techevent', 'location_string', self.gf('django.db.models.fields.CharField')(max_length=250, null=True, blank=True), keep_default=False) # Adding field 'Techevent.url' db.add_column('techvents_techevent', 'url', self.gf('django.db.models.fields.URLField')(max_length=200, null=True, blank=True), keep_default=False) # Adding field 'Techevent.slug' db.add_column('techvents_techevent', 'slug', self.gf('django.db.models.fields.SlugField')(max_length=255, null=True, blank=True), keep_default=False) # Adding field 'Techevent.list_online' db.add_column('techvents_techevent', 'list_online', self.gf('django.db.models.fields.NullBooleanField')(default=True, null=True, blank=True), keep_default=False) # Adding field 'Techevent.updated_on' db.add_column('techvents_techevent', 'updated_on', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 1, 20, 0, 0), auto_now=True, blank=True), keep_default=False) # Deleting field 'Techevent.event_ptr' db.delete_column('techvents_techevent', 'event_ptr_id')
def forwards(self, orm): # Adding model 'ForumUser' db.create_table( u"api_forumuser", ( (u"id", self.gf("django.db.models.fields.AutoField")(primary_key=True)), ( "system_user", self.gf("django.db.models.fields.related.OneToOneField")(to=orm["auth.User"], unique=True), ), ("avatar", self.gf("django.db.models.fields.files.ImageField")(max_length=100)), ), ) db.send_create_signal(u"api", ["ForumUser"]) # Adding model 'Topic' db.create_table( u"api_topic", ( (u"id", self.gf("django.db.models.fields.AutoField")(primary_key=True)), ("name", self.gf("django.db.models.fields.CharField")(max_length=100)), ("author", self.gf("django.db.models.fields.related.ForeignKey")(to=orm["api.ForumUser"])), ("op_post", self.gf("django.db.models.fields.TextField")(null=True, blank=True)), ( "created_at", self.gf("django.db.models.fields.DateTimeField")(default=datetime.datetime(2014, 5, 21, 0, 0)), ), ( "modified_at", self.gf("django.db.models.fields.DateTimeField")(default=datetime.datetime(2014, 5, 21, 0, 0)), ), ), ) db.send_create_signal(u"api", ["Topic"]) # Adding model 'Post' db.create_table( u"api_post", ( (u"id", self.gf("django.db.models.fields.AutoField")(primary_key=True)), ("topic", self.gf("django.db.models.fields.related.ForeignKey")(to=orm["api.Topic"])), ("number_in_topic", self.gf("django.db.models.fields.IntegerField")(null=True, blank=True)), ("text", self.gf("django.db.models.fields.TextField")(null=True, blank=True)), ( "created_at", self.gf("django.db.models.fields.DateTimeField")(default=datetime.datetime(2014, 5, 21, 0, 0)), ), ( "modified_at", self.gf("django.db.models.fields.DateTimeField")(default=datetime.datetime(2014, 5, 21, 0, 0)), ), ("author", self.gf("django.db.models.fields.related.ForeignKey")(to=orm["api.ForumUser"])), ("image", self.gf("django.db.models.fields.files.ImageField")(max_length=100, null=True, blank=True)), ), ) db.send_create_signal(u"api", ["Post"])
def forwards(self, orm): # Adding model 'HotTrust' db.create_table(u'wanglibao_hotlist_hottrust', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('trust', self.gf('django.db.models.fields.related.OneToOneField')( to=orm['trust.Trust'], unique=True)), ('hot_score', self.gf('django.db.models.fields.IntegerField')()), ('added', self.gf('django.db.models.fields.DateTimeField')( default=datetime.datetime(2014, 3, 3, 10, 23, 58), null=True)), )) db.send_create_signal(u'wanglibao_hotlist', ['HotTrust']) # Adding model 'HotFinancing' db.create_table(u'wanglibao_hotlist_hotfinancing', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('bank_financing', self.gf('django.db.models.fields.related.OneToOneField')( to=orm['wanglibao_bank_financing.BankFinancing'], unique=True)), ('hot_score', self.gf('django.db.models.fields.IntegerField')()), ('added', self.gf('django.db.models.fields.DateTimeField')( default=datetime.datetime(2014, 3, 3, 10, 23, 58), null=True)), )) db.send_create_signal(u'wanglibao_hotlist', ['HotFinancing']) # Adding model 'HotFund' db.create_table(u'wanglibao_hotlist_hotfund', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('Fund', self.gf('django.db.models.fields.related.OneToOneField')( to=orm['wanglibao_fund.Fund'], unique=True)), ('hot_score', self.gf('django.db.models.fields.IntegerField')()), ('added', self.gf('django.db.models.fields.DateTimeField')( default=datetime.datetime(2014, 3, 3, 10, 23, 58), null=True)), )) db.send_create_signal(u'wanglibao_hotlist', ['HotFund'])
def forwards(self, orm): # Adding field 'Client.from_home' db.add_column( u'app_client', 'from_home', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False) # Adding field 'Tax.limit_date' db.add_column(u'app_tax', 'limit_date', self.gf('django.db.models.fields.DateField')( default=datetime.datetime(2014, 1, 18, 0, 0)), keep_default=False)
def forwards(self, orm): # Adding field 'Document.upload_DateTime' db.add_column(u'data_upload_document', 'upload_DateTime', self.gf('django.db.models.fields.DateTimeField')( default=datetime.datetime(2014, 9, 19, 0, 0)), keep_default=False) # Adding field 'Document.user_id' db.add_column(u'data_upload_document', 'user_id', self.gf('django.db.models.fields.related.ForeignKey')( default=1, to=orm['auth.User']), keep_default=False)
def forwards(self, orm): # Adding field 'Customer.sex' db.add_column( 'customer', 'sex', self.gf('django.db.models.fields.IntegerField')(default=1), keep_default=False) # Adding field 'Customer.birth_day' db.add_column('customer', 'birth_day', self.gf('django.db.models.fields.DateField')( default=datetime.datetime(2015, 2, 11, 0, 0)), keep_default=False)
def forwards(self, orm): # Adding field 'ServerTask.date_update_state' db.add_column(u'seg_mngr_servertask', 'date_update_state', self.gf('django.db.models.fields.DateTimeField')( default=datetime.datetime(2014, 6, 12, 0, 0)), keep_default=False) # Adding field 'ServerTask.autor_update_state' db.add_column(u'seg_mngr_servertask', 'autor_update_state', self.gf('django.db.models.fields.related.ForeignKey')( default=1, to=orm['auth.User']), keep_default=False)
def forwards(self, orm): # Adding model 'File' db.create_table(u'file_manager_file', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('name_en', self.gf('django.db.models.fields.CharField')(max_length=255)), ('name_pl', self.gf('django.db.models.fields.CharField')(max_length=255)), ('created', self.gf('django.db.models.fields.DateTimeField')( default=datetime.datetime(2014, 1, 9, 0, 0))), ('modified', self.gf('django.db.models.fields.DateTimeField')( default=datetime.datetime(2014, 1, 9, 0, 0))), ('version', self.gf('django.db.models.fields.IntegerField')(default=0)), ('size', self.gf('django.db.models.fields.IntegerField')(default=0)), ('file_en', self.gf('django.db.models.fields.files.FileField')( max_length=100)), ('file_pl', self.gf('django.db.models.fields.files.FileField')( max_length=100)), )) db.send_create_signal(u'file_manager', ['File'])
def forwards(self, orm): # Deleting field 'AdvertToDelete.date_of_addition' db.delete_column(u'board_adverttodelete', 'date_of_addition') # Adding field 'AdvertToDelete.date_of_del' db.add_column(u'board_adverttodelete', 'date_of_del', self.gf('django.db.models.fields.DateField')(default=datetime.datetime(2014, 4, 4, 0, 0)), keep_default=False) # Changing field 'AdvertToDelete.advert' db.alter_column(u'board_adverttodelete', 'advert_id', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['board.Advert'], unique=True)) # Adding unique constraint on 'AdvertToDelete', fields ['advert'] db.create_unique(u'board_adverttodelete', ['advert_id'])
def backwards(self, orm): # Adding field 'Message.last_update' db.add_column(u'web_message', 'last_update', self.gf('django.db.models.fields.DateTimeField')( default=datetime.datetime(2014, 9, 15, 0, 0)), keep_default=False) # Adding field 'Message.order' db.add_column(u'web_message', 'order', self.gf('django.db.models.fields.PositiveIntegerField')( default=9999), keep_default=False)
def backwards(self, orm): # Changing field 'Order.close_time' db.alter_column( u'order_order', 'close_time', self.gf('django.db.models.fields.DateTimeField')( default=datetime.datetime(2014, 11, 28, 0, 0))) # Changing field 'Order.close_price' db.alter_column( u'order_order', 'close_price', self.gf('django.db.models.fields.DecimalField')(default=0, max_digits=12, decimal_places=2))
def forwards(self, orm): # Adding field 'ProductAmortization.term_date' db.add_column(u'wanglibao_p2p_productamortization', 'term_date', self.gf('django.db.models.fields.DateTimeField')( default=datetime.datetime(2014, 6, 24, 0, 0)), keep_default=False) # Adding field 'ProductAmortization.ready_for_settle' db.add_column( u'wanglibao_p2p_productamortization', 'ready_for_settle', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False)
def forwards(self, orm): # Adding model 'Branch' db.create_table(u'meta_branch', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])), ('name', self.gf('django.db.models.fields.CharField')(max_length=255)), ('address', self.gf('django.db.models.fields.CharField')(max_length=1024)), ('latitude', self.gf('django.db.models.fields.FloatField')(default=0.0)), ('longitude', self.gf('django.db.models.fields.FloatField')(default=0.0)), ('postcode', self.gf('django.db.models.fields.CharField')(max_length=16)), ('telephone', self.gf('django.db.models.fields.CharField')(max_length=32, blank=True)), ('fax', self.gf('django.db.models.fields.CharField')(max_length=32, blank=True)), ('emailAddress', self.gf('django.db.models.fields.CharField')(max_length=32)), ('weekdayTimings', self.gf('django.db.models.fields.CharField')(max_length=16)), ('saturdayTimings', self.gf('django.db.models.fields.CharField')(max_length=16)), ('createdAt', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 9, 3, 0, 0), auto_now=True, auto_now_add=True, blank=True)), ('updatedAt', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 9, 3, 0, 0), auto_now=True, auto_now_add=True, blank=True)), )) db.send_create_signal(u'meta', ['Branch']) # Adding model 'Contact' db.create_table(u'meta_contact', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('name', self.gf('django.db.models.fields.CharField')(max_length=255)), ('jobRole', self.gf('django.db.models.fields.CharField')(max_length=64)), ('branch', self.gf('django.db.models.fields.related.ForeignKey')(default=0, to=orm['meta.Branch'])), ('contactNumber', self.gf('django.db.models.fields.CharField')(max_length=32, blank=True)), ('mobileNumber', self.gf('django.db.models.fields.CharField')(max_length=32, blank=True)), ('emailAddress', self.gf('django.db.models.fields.CharField')(max_length=64)), ('profileImageUrl', self.gf('django.db.models.fields.CharField')(max_length=1024, blank=True)), ('createdAt', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 9, 3, 0, 0), auto_now=True, auto_now_add=True, blank=True)), ('updatedAt', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 9, 3, 0, 0), auto_now=True, auto_now_add=True, blank=True)), )) db.send_create_signal(u'meta', ['Contact']) # Adding model 'Deal' db.create_table(u'meta_deal', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])), ('description', self.gf('django.db.models.fields.CharField')(max_length=255)), ('info', self.gf('django.db.models.fields.CharField')(max_length=1024, blank=True)), ('availability', self.gf('django.db.models.fields.DateTimeField')()), ('telephone', self.gf('django.db.models.fields.CharField')(max_length=32, blank=True)), ('availableOnline', self.gf('django.db.models.fields.BooleanField')(default=False)), ('dealImageUrl', self.gf('django.db.models.fields.CharField')(max_length=1024, blank=True)), ('createdAt', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 9, 3, 0, 0), auto_now=True, auto_now_add=True, blank=True)), ('updatedAt', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 9, 3, 0, 0), auto_now=True, auto_now_add=True, blank=True)), )) db.send_create_signal(u'meta', ['Deal']) # Adding model 'DealBranch' db.create_table(u'meta_dealbranch', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('branch', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['meta.Branch'])), ('deal', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['meta.Deal'])), )) db.send_create_signal(u'meta', ['DealBranch'])
def forwards(self, orm): # Adding model 'Auction' db.create_table(u'auctions_auction', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('user', self.gf('django.db.models.fields.related.ForeignKey')( to=orm['auth.User'], null=True, blank=True)), ('title', self.gf('django.db.models.fields.CharField')(max_length=120)), ('description', self.gf('django.db.models.fields.TextField')( default='Type description here', max_length=200)), ('minimum_price', self.gf('django.db.models.fields.DecimalField')( default=0.01, max_digits=100, decimal_places=2)), ('timestamp', self.gf('django.db.models.fields.DateTimeField')( auto_now_add=True, blank=True)), ('deadline', self.gf('django.db.models.fields.DateTimeField')( default=datetime.datetime(2015, 11, 5, 0, 0))), ('active', self.gf('django.db.models.fields.BooleanField')(default=True)), ('banned', self.gf('django.db.models.fields.BooleanField')(default=False)), ('due', self.gf('django.db.models.fields.BooleanField')(default=False)), ('adjucated', self.gf('django.db.models.fields.BooleanField')(default=False)), ('slug', self.gf('django.db.models.fields.SlugField')( unique=True, max_length=50)), ('last_bidder', self.gf('django.db.models.fields.CharField')(max_length=120)), )) db.send_create_signal(u'auctions', ['Auction']) # Adding unique constraint on 'Auction', fields ['title', 'slug'] db.create_unique(u'auctions_auction', ['title', 'slug']) # Adding model 'User' db.create_table(u'auctions_user', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('password', self.gf('django.db.models.fields.CharField')(max_length=128)), ('last_login', self.gf('django.db.models.fields.DateTimeField')( default=datetime.datetime.now)), ('language', self.gf('django.db.models.fields.CharField')(max_length=50)), ('email', self.gf('django.db.models.fields.EmailField')( unique=True, max_length=75, db_index=True)), )) db.send_create_signal(u'auctions', ['User'])
def forwards(self, orm): # Adding field 'LocalChapter.schoolCity' db.add_column(u'localchapters_localchapter', 'schoolCity', self.gf('django.db.models.fields.CharField')(default=datetime.datetime(2014, 6, 26, 0, 0), max_length=100), keep_default=False) # Adding field 'LocalChapter.schoolState' db.add_column(u'localchapters_localchapter', 'schoolState', self.gf('django.db.models.fields.CharField')(default=1, max_length=100), keep_default=False) # Adding field 'LocalChapter.schoolZipCode' db.add_column(u'localchapters_localchapter', 'schoolZipCode', self.gf('django.db.models.fields.CharField')(default=1, max_length=100), keep_default=False)
def forwards(self, orm): # Adding model 'Weight' db.create_table('manual_weight', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('updated_at', self.gf('django.db.models.fields.DateTimeField')( auto_now=True, blank=True)), ('when', self.gf('django.db.models.fields.DateTimeField')( default=datetime.datetime(2014, 3, 29, 0, 0))), ('weight', self.gf('django.db.models.fields.FloatField')( null=True, blank=True)), ('body_fat_percent', self.gf('django.db.models.fields.FloatField')( null=True, blank=True)), )) db.send_create_signal('manual', ['Weight'])
def forwards(self, orm): # Adding model 'Feedback' db.create_table(u'feedback_feedback', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('from_page', self.gf('django.db.models.fields.related.ForeignKey')( to=orm['page.Page'], null=True, blank=True)), ('text', self.gf('django.db.models.fields.TextField')()), ('email', self.gf('django.db.models.fields.EmailField')( max_length=75, blank=True)), ('date', self.gf('django.db.models.fields.DateTimeField')( default=datetime.datetime(2014, 1, 9, 0, 0))), )) db.send_create_signal(u'feedback', ['Feedback'])
def forwards(self, orm): # Deleting model 'dynamic_unique' db.delete_table(u'member_dynamic_unique') # Adding model 'memberDynamic' db.create_table('member_dynamic', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('member', self.gf('django.db.models.fields.related.ForeignKey')( to=orm['member.Member'])), ('type', self.gf('django.db.models.fields.IntegerField')(default=0)), ('item_id', self.gf('django.db.models.fields.IntegerField')(default=0)), ('memo', self.gf('django.db.models.fields.CharField')( max_length=200, null=True, blank=True)), ('add_time', self.gf('django.db.models.fields.DateTimeField')( default=datetime.datetime(2015, 5, 21, 0, 0), auto_now_add=True, blank=True)), ('update_time', self.gf('django.db.models.fields.DateTimeField')( default=datetime.datetime(2015, 5, 21, 0, 0))), )) db.send_create_signal(u'member', ['memberDynamic'])
def forwards(self, orm): # Adding field 'LocalChaptersPage.file' db.add_column(u'localchapters_localchapterspage', 'file', self.gf('mezzanine.core.fields.FileField')( default=datetime.datetime(2014, 6, 26, 0, 0), max_length=200), keep_default=False) # Adding field 'LocalChaptersPage.extra_info' db.add_column(u'localchapters_localchapterspage', 'extra_info', self.gf('mezzanine.core.fields.RichTextField')( default='', blank=True), keep_default=False)
def forwards(self, orm): # Adding field 'Post.last_edit' db.add_column(u'app1_post', 'last_edit', self.gf('django.db.models.fields.DateTimeField')( auto_now=True, default=datetime.datetime(2014, 10, 27, 0, 0), blank=True), keep_default=False) # Changing field 'Post.pub_date' db.alter_column( u'app1_post', 'pub_date', self.gf('django.db.models.fields.DateTimeField')( auto_now_add=True))
def forwards(self, orm): # Adding field 'MailAccount.date_created' db.add_column(u'core_mailaccount', 'date_created', self.gf('django.db.models.fields.DateTimeField')( auto_now_add=True, default=datetime.datetime(2014, 10, 3, 0, 0), blank=True), keep_default=False) # Adding field 'MailAccount.date_test' db.add_column(u'core_mailaccount', 'date_test', self.gf('django.db.models.fields.DateTimeField')( default=datetime.datetime(2007, 1, 1, 0, 0)), keep_default=False) # Adding field 'MailAccount.conn_error' db.add_column(u'core_mailaccount', 'conn_error', self.gf('django.db.models.fields.CharField')( default=u'', max_length=255, blank=True), keep_default=False) # Adding field 'MailAccount.is_usable' db.add_column( u'core_mailaccount', 'is_usable', self.gf('django.db.models.fields.BooleanField')(default=True), keep_default=False) # Changing field 'MailAccount.username' db.alter_column( u'core_mailaccount', 'username', self.gf('django.db.models.fields.CharField')(default='', max_length=255))
def forwards(self, orm): # Adding field 'AppMemorabilia.content' db.add_column(u'wanglibao_announcement_appmemorabilia', 'content', self.gf('ckeditor.fields.RichTextField')(default=''), keep_default=False) # Adding field 'AppMemorabilia.created_time' db.add_column(u'wanglibao_announcement_appmemorabilia', 'created_time', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2016, 3, 30, 0, 0), auto_now_add=True, blank=True), keep_default=False) # Adding field 'AppMemorabilia.updated_time' db.add_column(u'wanglibao_announcement_appmemorabilia', 'updated_time', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2016, 3, 30, 0, 0), auto_now=True, blank=True), keep_default=False) # Adding field 'AppMemorabilia.page_title' db.add_column(u'wanglibao_announcement_appmemorabilia', 'page_title', self.gf('django.db.models.fields.CharField')(max_length=100, null=True, blank=True), keep_default=False) # Changing field 'AppMemorabilia.detail_link' db.alter_column(u'wanglibao_announcement_appmemorabilia', 'detail_link', self.gf('django.db.models.fields.CharField')(max_length=255, null=True))
def backwards(self, orm): # Adding model 'FirstOrderDiscount' db.create_table(u'webstore_firstorderdiscount', ( (u'promotion_ptr', self.gf('django.db.models.fields.related.OneToOneField')( to=orm['webstore.Promotion'], unique=True, primary_key=True)), ('end_date', self.gf('django.db.models.fields.DateField')( default=datetime.datetime(2014, 7, 23, 0, 0), null=True, blank=True)), )) db.send_create_signal(u'webstore', ['FirstOrderDiscount']) # Deleting field 'Coupon.first_order' db.delete_column(u'webstore_coupon', 'first_order')
def backwards(self, orm): # Adding field 'Comment.date' db.add_column('articletrack_comment', 'date', self.gf('django.db.models.fields.DateTimeField')( auto_now=True, default=datetime.datetime(2014, 2, 24, 0, 0), blank=True), keep_default=False) # Deleting field 'Comment.created_at' db.delete_column('articletrack_comment', 'created_at') # Deleting field 'Comment.updated_at' db.delete_column('articletrack_comment', 'updated_at')
def forwards(self, orm): # Adding model 'SiteConfig' db.create_table(u'core_siteconfig', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('url', self.gf('django.db.models.fields.CharField')(max_length=255)), ('name', self.gf('django.db.models.fields.CharField')(max_length=120)), ('date', self.gf('django.db.models.fields.DateTimeField')( default=datetime.datetime(2014, 10, 19, 0, 0), auto_now_add=True, blank=True)), )) db.send_create_signal('core', ['SiteConfig'])
def forwards(self, orm): # Adding model 'FilterListItemCopy' db.create_table('api_filterlistitemcopy', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('user', self.gf('django.db.models.fields.related.ForeignKey')( to=orm['auth.User'])), ('url', self.gf('django.db.models.fields.URLField')( default='', max_length=2000)), ('date_created', self.gf('django.db.models.fields.DateTimeField')( default=datetime.datetime(2013, 12, 8, 0, 0), auto_now=True, blank=True)), )) db.send_create_signal('api', ['FilterListItemCopy'])
def forwards(self, orm): # Changing field 'Monitoring.rate_date' db.alter_column( 'exmo2010_monitoring', 'rate_date', self.gf('django.db.models.fields.DateField')( default=datetime.datetime(2014, 2, 18, 0, 0))) # Changing field 'Monitoring.publish_date' db.alter_column( 'exmo2010_monitoring', 'publish_date', self.gf('django.db.models.fields.DateField')( default=datetime.datetime(2014, 2, 18, 0, 0))) # Changing field 'Monitoring.interact_date' db.alter_column( 'exmo2010_monitoring', 'interact_date', self.gf('django.db.models.fields.DateField')( default=datetime.datetime(2014, 2, 18, 0, 0))) # Changing field 'Monitoring.finishing_date' db.alter_column( 'exmo2010_monitoring', 'finishing_date', self.gf('django.db.models.fields.DateField')( default=datetime.datetime(2014, 2, 18, 0, 0)))
def forwards(self, orm): # Adding field 'News.created_by' db.add_column(u'news_news', 'created_by', self.gf('django.db.models.fields.related.ForeignKey')( default=1, related_name=u'news_news_owner_related', to=orm['auth.User']), keep_default=False) # Adding field 'News.changed_by' db.add_column(u'news_news', 'changed_by', self.gf('django.db.models.fields.related.ForeignKey')( default=1, related_name=u'news_news_changed_by_related', to=orm['auth.User']), keep_default=False) # Adding field 'News.creation_date' db.add_column(u'news_news', 'creation_date', self.gf('django.db.models.fields.DateTimeField')( auto_now_add=True, default=datetime.datetime(2014, 3, 5, 0, 0), blank=True), keep_default=False) # Adding field 'News.changed_date' db.add_column(u'news_news', 'changed_date', self.gf('django.db.models.fields.DateTimeField')( auto_now=True, default=datetime.datetime(2014, 3, 5, 0, 0), blank=True), keep_default=False)
def forwards(self, orm): # Adding model 'TrelloObjectAction' db.create_table(u'taskmanager_trelloobjectaction', ( ('id', self.gf('django.db.models.fields.CharField')( max_length=100, primary_key=True)), ('type', self.gf('django.db.models.fields.CharField')(max_length=100)), ('model', self.gf('django.db.models.fields.related.ForeignKey')( blank=True, related_name='actions', null=True, to=orm['taskmanager.TrelloObject'])), ('meta', self.gf('jsonfield.fields.JSONField')()), ('occurred', self.gf('django.db.models.fields.DateTimeField')()), ('created', self.gf('django.db.models.fields.DateTimeField')( auto_now_add=True, blank=True)), )) db.send_create_signal('taskmanager', ['TrelloObjectAction']) # Adding field 'TrelloObject.updated' db.add_column(u'taskmanager_trelloobject', 'updated', self.gf('django.db.models.fields.DateTimeField')( auto_now=True, default=datetime.datetime(2015, 6, 30, 0, 0), blank=True), keep_default=False) # Adding field 'TrelloObject.created' db.add_column(u'taskmanager_trelloobject', 'created', self.gf('django.db.models.fields.DateTimeField')( auto_now_add=True, default=datetime.datetime(2015, 6, 30, 0, 0), blank=True), keep_default=False)
def forwards(self, orm): # Deleting field 'UserProfile.dog' db.delete_column('user_interface_userprofile', 'dog') # Deleting field 'UserProfile.balance' db.delete_column('user_interface_userprofile', 'balance') # Deleting field 'UserProfile.next_appointment' db.delete_column('user_interface_userprofile', 'next_appointment') # Adding field 'UserProfile.web_url' db.add_column('user_interface_userprofile', 'web_url', self.gf('django.db.models.fields.URLField')( max_length=200, blank=True, default=''), keep_default=False) # Adding field 'UserProfile.support_plan' db.add_column('user_interface_userprofile', 'support_plan', self.gf('django.db.models.fields.CharField')( max_length=7, default='None'), keep_default=False) # Adding field 'UserProfile.current_balance' db.add_column('user_interface_userprofile', 'current_balance', self.gf('django.db.models.fields.DecimalField')( blank=True, max_digits=6, decimal_places=2, default=0.0), keep_default=False) # Adding field 'UserProfile.balance_due_date' db.add_column('user_interface_userprofile', 'balance_due_date', self.gf('django.db.models.fields.DateField')( auto_now_add=True, blank=True, default=datetime.datetime(2015, 2, 3, 0, 0)), keep_default=False) # Changing field 'UserProfile.image' db.alter_column( 'user_interface_userprofile', 'image', self.gf('utilities.ContentTypeRestrictedImageField')( max_length=255, null=True, max_upload_size=2621440))
def forwards(self, orm): # Adding model 'Record' db.create_table('scheduler_record', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('worker', self.gf('django.db.models.fields.related.ForeignKey')( to=orm['scheduler.Worker'])), ('category', self.gf('django.db.models.fields.CharField')( max_length=2, default='I')), ('time_added', self.gf('django.db.models.fields.TimeField')( auto_now_add=True, blank=True)), ('time_edited', self.gf('django.db.models.fields.TimeField')( auto_now=True, blank=True)), ('info', self.gf('django.db.models.fields.CharField')( max_length=100, blank=True)), ('note', self.gf('django.db.models.fields.TextField')(blank=True)), )) db.send_create_signal('scheduler', ['Record']) # Adding model 'Announcement' db.create_table('scheduler_announcement', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('title', self.gf('django.db.models.fields.CharField')(max_length=50)), ('body', self.gf('django.db.models.fields.TextField')()), ('image', self.gf('django.db.models.fields.files.ImageField')( max_length=200, blank=True)), ('date_created', self.gf('django.db.models.fields.DateField')( auto_now_add=True, blank=True)), ('date_to_destroy', self.gf('django.db.models.fields.DateField')( default=datetime.datetime(2014, 10, 6, 0, 0))), )) db.send_create_signal('scheduler', ['Announcement']) # Adding field 'Shift.status' db.add_column('scheduler_shift', 'status', self.gf('django.db.models.fields.CharField')( max_length=2, default='O'), keep_default=False) # Adding field 'Worker.tshirt_size' db.add_column('scheduler_worker', 'tshirt_size', self.gf('django.db.models.fields.CharField')( max_length=2, blank=True, default=''), keep_default=False)
def forwards(self, orm): # Adding field 'MMCScript.last_call' db.add_column('mmc_mmcscript', 'last_call', self.gf('django.db.models.fields.DateTimeField')( auto_now=True, default=datetime.datetime(2016, 9, 23, 0, 0), blank=True), keep_default=False) # Adding field 'MMCScript.max_elapsed' db.add_column( 'mmc_mmcscript', 'max_elapsed', self.gf('django.db.models.fields.FloatField')(default=0.0), keep_default=False)