def backwards(self, orm): # Changing field 'UserProfile.timezone' db.alter_column('main_userprofile', 'timezone', self.gf('django.db.models.fields.CharField')()) # Deleting field 'UserService.public' db.delete_column('main_userservice', 'public')
def forwards(self, orm): # Changing field 'PrestatairePlanning.start_date' db.alter_column(u'famille_prestataireplanning', 'start_date', self.gf('django.db.models.fields.DateField')()) # Changing field 'FamillePlanning.start_date' db.alter_column(u'famille_familleplanning', 'start_date', self.gf('django.db.models.fields.DateField')())
def forwards(self, orm): # Changing field 'Ingredient.name' db.alter_column(u'dishes_ingredient', 'name', self.gf('django.db.models.fields.CharField')(max_length=200)) # Deleting field 'Dish.new' db.delete_column(u'dishes_dish', 'new') # Adding field 'Dish.photo' db.add_column(u'dishes_dish', 'photo', self.gf('django.db.models.fields.files.FileField')(max_length=100, null=True), keep_default=False) # Adding field 'Dish.likes' db.add_column(u'dishes_dish', 'likes', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False) # Changing field 'Dish.flavors' db.alter_column(u'dishes_dish', 'flavors', self.gf('django.db.models.fields.CharField')(max_length=200)) # Changing field 'Dish.cuisine' db.alter_column(u'dishes_dish', 'cuisine', self.gf('django.db.models.fields.CharField')(max_length=200)) # Changing field 'Dish.name' db.alter_column(u'dishes_dish', 'name', self.gf('django.db.models.fields.CharField')(max_length=200)) # Changing field 'Dish.prep_time' db.alter_column(u'dishes_dish', 'prep_time', self.gf('django.db.models.fields.IntegerField')())
def forwards(self, orm): # Changing field 'UserProfile.timezone' db.alter_column('main_userprofile', 'timezone', self.gf('timezones.fields.TimeZoneField')()) # Adding field 'UserService.public' db.add_column('main_userservice', 'public', self.gf('django.db.models.fields.NullBooleanField')(default=False, null=True, blank=True), keep_default=False)
def forwards(self, orm): # Adding model 'CalendarGroup' db.create_table('schedule_calendargroup', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('name', self.gf('django.db.models.fields.CharField')(max_length=40)), ('color', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['main.Color'])), )) db.send_create_signal('schedule', ['CalendarGroup']) # Adding M2M table for field members on 'CalendarGroup' db.create_table('schedule_calendargroup_members', ( ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), ('calendargroup', models.ForeignKey(orm['schedule.calendargroup'], null=False)), ('user', models.ForeignKey(orm['auth.user'], null=False)) )) db.create_unique('schedule_calendargroup_members', ['calendargroup_id', 'user_id']) # Adding field 'Event.group' db.add_column('schedule_event', 'group', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['schedule.CalendarGroup'], null=True, blank=True), keep_default=False) # Changing field 'Event.calendar' db.alter_column('schedule_event', 'calendar_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['schedule.Calendar'], null=True))
def forwards(self, orm): # Deleting field 'Post._text_rendered' db.delete_column(u'blog_post', '_text_rendered') # Changing field 'Post.text' db.alter_column(u'blog_post', 'text', self.gf('django.db.models.fields.TextField')())
def backwards(self, orm): # Changing field 'Ingredient.name' db.alter_column(u'dishes_ingredient', 'name', self.gf('django.db.models.fields.CharField')(max_length=30)) # Adding field 'Dish.new' db.add_column(u'dishes_dish', 'new', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False) # Deleting field 'Dish.photo' db.delete_column(u'dishes_dish', 'photo') # Deleting field 'Dish.likes' db.delete_column(u'dishes_dish', 'likes') # Changing field 'Dish.flavors' db.alter_column(u'dishes_dish', 'flavors', self.gf('django.db.models.fields.CharField')(max_length=50)) # Changing field 'Dish.cuisine' db.alter_column(u'dishes_dish', 'cuisine', self.gf('django.db.models.fields.CharField')(max_length=30)) # Changing field 'Dish.name' db.alter_column(u'dishes_dish', 'name', self.gf('django.db.models.fields.CharField')(max_length=30)) # Changing field 'Dish.prep_time' db.alter_column(u'dishes_dish', 'prep_time', self.gf('django.db.models.fields.FloatField')())
def backwards(self, orm): # Deleting model 'IncentiveFee' db.delete_table('hedgefunds_incentivefee') # Changing field 'StudentTeam.rate' db.alter_column('hedgefunds_studentteam', 'rate', self.gf('django.db.models.fields.IntegerField')())
def forwards(self, orm): # Deleting field 'SavedSearch.openid_user' db.delete_column('localtv_savedsearch', 'openid_user_id') # Deleting field 'OpenIdUser.status' db.delete_column('localtv_openiduser', 'status') # Deleting field 'Watch.openid_user' db.delete_column('localtv_watch', 'openid_user_id') # Deleting field 'OpenIdUser.superuser' db.delete_column('localtv_openiduser', 'superuser') # Deleting field 'OpenIdUser.nickname' db.delete_column('localtv_openiduser', 'nickname') # Deleting field 'OpenIdUser.email' db.delete_column('localtv_openiduser', 'email') # Deleting field 'Feed.openid_user' db.delete_column('localtv_feed', 'openid_user_id') # Deleting field 'Video.openid_user' db.delete_column('localtv_video', 'openid_user_id') # Dropping ManyToManyField 'SiteLocation.admins' db.delete_table('localtv_sitelocation_admins') # Changing field 'OpenIdUser.user' # (to signature: django.db.models.fields.related.OneToOneField(to=orm['auth.User'], unique=True)) db.alter_column('localtv_openiduser', 'user_id', orm['localtv.openiduser:user'])
def backwards(self, orm): # Changing field 'Task.model_solution' db.alter_column('tasks_task', 'model_solution_id', self.gf('django.db.models.fields.related.OneToOneField')(unique=True, null=True, to=orm['solutions.Solution'])) # Adding unique constraint on 'Task', fields ['model_solution'] db.create_unique('tasks_task', ['model_solution_id'])
def forwards(self, orm): # Removing unique constraint on 'Task', fields ['model_solution'] db.delete_unique('tasks_task', ['model_solution_id']) # Changing field 'Task.model_solution' db.alter_column('tasks_task', 'model_solution_id', self.gf('django.db.models.fields.related.ForeignKey')(null=True, to=orm['solutions.Solution']))
def backwards(self, orm): # Removing M2M table for field supervisors on 'SupportGroup' db.delete_table('live_support_supportgroup_supervisors') # Changing field 'Chat.hash_key' db.alter_column('live_support_chat', 'hash_key', self.gf('django.db.models.fields.CharField')(default='', max_length=64, unique=True))
def forwards(self, orm): # Changing field 'Feedback.browser' db.alter_column(u'feedback_feedback', 'browser', self.gf('django.db.models.fields.CharField')(max_length=250, null=True)) # Changing field 'AnonymousFeedback.browser' db.alter_column(u'feedback_anonymousfeedback', 'browser', self.gf('django.db.models.fields.CharField')(max_length=250, null=True))
def backwards(self, orm): # Removing index on 'UserProfile', fields ['slug'] db.delete_index(u'spa_userprofile', ['slug']) # Changing field 'UserProfile.slug' db.alter_column(u'spa_userprofile', 'slug', self.gf('django.db.models.fields.CharField')(max_length=35, null=True))
def forwards(self, orm): # Deleting field 'Project.private' db.delete_column('gitlog_project', 'private') # Deleting field 'Project.source' db.delete_column('gitlog_project', 'source') # Adding field 'Project.public' db.add_column('gitlog_project', 'public', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False) # Adding field 'Project.url' db.add_column('gitlog_project', 'url', self.gf('django.db.models.fields.URLField')(max_length=30, null=True, blank=True), keep_default=False) # Adding field 'Project.description' db.add_column('gitlog_project', 'description', self.gf('django.db.models.fields.TextField')(null=True, blank=True), keep_default=False) # Adding M2M table for field writable on 'Project' db.create_table('gitlog_project_writable', ( ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), ('project', models.ForeignKey(orm['gitlog.project'], null=False)), ('user', models.ForeignKey(orm['auth.user'], null=False)) )) db.create_unique('gitlog_project_writable', ['project_id', 'user_id']) # Adding M2M table for field readonly on 'Project' db.create_table('gitlog_project_readonly', ( ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), ('project', models.ForeignKey(orm['gitlog.project'], null=False)), ('user', models.ForeignKey(orm['auth.user'], null=False)) )) db.create_unique('gitlog_project_readonly', ['project_id', 'user_id']) # Changing field 'Project.owner' db.alter_column('gitlog_project', 'owner_id', self.gf('django.db.models.fields.related.ForeignKey')(null=True, to=orm['auth.User']))
def forwards(self, orm): # Deleting model 'DirectorsGenres' db.delete_table(u'directors_genres') # Deleting model 'MoviesGenres' db.delete_table(u'movies_genres') # Deleting model 'MoviesDirectors' db.delete_table(u'movies_directors') # Deleting model 'Directors' db.delete_table(u'directors') # Renaming column for 'Roles.movie_id' to match new field type. db.rename_column(u'roles', 'movie_id', 'movie_id_id') # Changing field 'Roles.movie_id' db.alter_column(u'roles', 'movie_id_id', self.gf('django.db.models.fields.related.ForeignKey')(default=0, to=orm['step_game.Movies'])) # Adding index on 'Roles', fields ['movie_id'] db.create_index(u'roles', ['movie_id_id']) # Renaming column for 'Roles.actor_id' to match new field type. db.rename_column(u'roles', 'actor_id', 'actor_id_id') # Changing field 'Roles.actor_id' db.alter_column(u'roles', 'actor_id_id', self.gf('django.db.models.fields.related.ForeignKey')(default=0, to=orm['step_game.Actors'])) # Adding index on 'Roles', fields ['actor_id'] db.create_index(u'roles', ['actor_id_id'])
def forwards(self, orm): # Changing field 'ExtensionVersion.source' db.alter_column('extensions_extensionversion', 'source', self.gf('django.db.models.fields.files.FileField')(max_length=223)) # Changing field 'ExtensionVersion.version' db.alter_column('extensions_extensionversion', 'version', self.gf('django.db.models.fields.IntegerField')())
def forwards(self, orm): # Adding field 'ScheduledTask.last_execution' db.add_column('scheduler_scheduledtask', 'last_execution', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True), keep_default=False) # Changing field 'ScheduledTask.next_execution' db.alter_column('scheduler_scheduledtask', 'next_execution', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True))
def forwards(self, orm): # Changing field 'Mailbox.user' db.alter_column('paloma_mailbox', 'user_id', self.gf('django.db.models.fields.related.ForeignKey')(default=1, to=orm['auth.User'])) # Changing field 'Mailbox.address' db.alter_column('paloma_mailbox', 'address', self.gf('django.db.models.fields.CharField')(default=3, unique=True, max_length=100))
def backwards(self, orm): # Adding M2M table for field comment on 'Event' m2m_table_name = db.shorten_name(u'event_event_comment') db.create_table(m2m_table_name, ( ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), ('event', models.ForeignKey(orm[u'event.event'], null=False)), ('comment', models.ForeignKey(orm[u'comment.comment'], null=False)) )) db.create_unique(m2m_table_name, ['event_id', 'comment_id']) # Changing field 'Event.category' db.alter_column(u'event_event', 'category_id', self.gf('django.db.models.fields.related.ForeignKey')(default=1, to=orm['event.EventCategory'])) # Changing field 'Event.fr' db.alter_column(u'event_event', 'fr', self.gf('django.db.models.fields.DateTimeField')(default=1)) # Changing field 'Event.cover' db.alter_column(u'event_event', 'cover', self.gf('django.db.models.fields.files.ImageField')(default=1, max_length=100)) # Changing field 'Event.to' db.alter_column(u'event_event', 'to', self.gf('django.db.models.fields.DateTimeField')(default=1)) # Changing field 'Event.place' db.alter_column(u'event_event', 'place', self.gf('django.db.models.fields.CharField')(default=1, max_length=250))
def backwards(self, orm): # Deleting field 'ScheduledTask.last_execution' db.delete_column('scheduler_scheduledtask', 'last_execution') # Changing field 'ScheduledTask.next_execution' db.alter_column('scheduler_scheduledtask', 'next_execution', self.gf('django.db.models.fields.DateTimeField')())
def forwards(self, orm): # Changing field 'Organization.email' db.alter_column('exmo2010_organization', 'email', self.gf('exmo2010.models.EmailsField')(null=True)) # Changing field 'Organization.phone' db.alter_column('exmo2010_organization', 'phone', self.gf('exmo2010.models.PhonesField')(null=True))
def forwards(self, orm): # Changing field 'Keyword.title' db.alter_column('generic_keyword', 'title', self.gf('django.db.models.fields.CharField')(max_length=500)) # Changing field 'Keyword.slug' db.alter_column('generic_keyword', 'slug', self.gf('django.db.models.fields.CharField')(max_length=2000, null=True))
def forwards(self, orm): # Changing field 'Message.date' db.alter_column('questions_message', 'date', self.gf('django.db.models.fields.DateTimeField')()) # Changing field 'MessageView.date' db.alter_column('questions_messageview', 'date', self.gf('django.db.models.fields.DateTimeField')())
def forwards(self, orm): db.rename_table('speeches_popolospeaker', 'speeches_speaker') db.alter_column('speeches_recordingtimestamp', 'speaker_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['speeches.Speaker'], null=True, on_delete=models.SET_NULL)) db.alter_column('speeches_speech', 'speaker_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['speeches.Speaker'], null=True, on_delete=models.SET_NULL)) if not db.dry_run: orm['contenttypes.contenttype'].objects.filter(app_label='speeches', model='speaker').update(model='oldspeaker') orm['contenttypes.contenttype'].objects.filter(app_label='speeches', model='popolospeaker').update(model='speaker')
def backwards(self, orm): # Changing field 'Organization.name' db.alter_column('organizations_organization', 'name', self.gf('django.db.models.fields.CharField')(max_length=50)) # Changing field 'Organization.slug' db.alter_column('organizations_organization', 'slug', self.gf('django.db.models.fields.SlugField')(max_length=50, unique=True))
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 forwards(self, orm): # Changing field 'RentPost.total_rooms' db.alter_column(u'posts_rentpost', 'total_rooms', self.gf('django.db.models.fields.PositiveSmallIntegerField')(null=True)) # Changing field 'RentPost.total_baths' db.alter_column(u'posts_rentpost', 'total_baths', self.gf('django.db.models.fields.PositiveSmallIntegerField')(null=True))
def forwards(self, orm): # Changing field 'Album.head' db.alter_column(u'imagestore_album', 'head_id', self.gf('django.db.models.fields.related.ForeignKey')(null=True, on_delete=models.SET_NULL, to=orm['imagestore.Image'])) # Changing field 'Album.user' db.alter_column(u'imagestore_album', 'user_id', self.gf('django.db.models.fields.related.ForeignKey')(default=0, to=orm['auth.User']))
def backwards(self, orm): # Changing field 'Organization.email' db.alter_column('exmo2010_organization', 'email', self.gf('django.db.models.fields.TextField')(null=True)) # Changing field 'Organization.phone' db.alter_column('exmo2010_organization', 'phone', self.gf('django.db.models.fields.TextField')(null=True))
def forwards(self, orm): # Changing field 'BusinessUnit.key' db.alter_column(u'server_businessunit', 'key', self.gf('django.db.models.fields.CharField')(max_length=255, unique=True, null=True))
def backwards(self, orm): # Changing field 'Glucose.value' db.alter_column(u'glucoses_glucose', 'value', self.gf('django.db.models.fields.IntegerField')())
def forwards(self, orm): # Changing field 'PayInfo.check_response' db.alter_column( u'wanglibao_pay_payinfo', 'check_response', self.gf('django.db.models.fields.CharField')(max_length=1000))
def forwards(self, orm): # Adding field 'Customer.address_city' db.add_column(u'djstripe_customer', 'address_city', self.gf('django.db.models.fields.CharField')( max_length=255, null=True, blank=True), keep_default=False) # Adding field 'Customer.address_country' db.add_column(u'djstripe_customer', 'address_country', self.gf('django.db.models.fields.CharField')( max_length=255, null=True, blank=True), keep_default=False) # Adding field 'Customer.address_line1' db.add_column(u'djstripe_customer', 'address_line1', self.gf('django.db.models.fields.CharField')( max_length=255, null=True, blank=True), keep_default=False) # Adding field 'Customer.address_line2' db.add_column(u'djstripe_customer', 'address_line2', self.gf('django.db.models.fields.CharField')( max_length=255, null=True, blank=True), keep_default=False) # Adding field 'Customer.address_state' db.add_column(u'djstripe_customer', 'address_state', self.gf('django.db.models.fields.CharField')( max_length=255, null=True, blank=True), keep_default=False) # Adding field 'Customer.address_zip' db.add_column(u'djstripe_customer', 'address_zip', self.gf('django.db.models.fields.CharField')( max_length=255, null=True, blank=True), keep_default=False) # Adding field 'Customer.card_name' db.add_column(u'djstripe_customer', 'card_name', self.gf('django.db.models.fields.CharField')( max_length=255, null=True, blank=True), keep_default=False) # Adding field 'Customer.valid_payment_method' db.add_column( u'djstripe_customer', 'valid_payment_method', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False) # Changing field 'Customer.user' db.alter_column( u'djstripe_customer', 'user_id', self.gf('django.db.models.fields.related.OneToOneField')( to=orm['account.User'], unique=True, null=True))
def backwards(self, orm): db.rename_column('o_b_renseignement', 'code', 'code_old') db.alter_column('o_b_renseignement', 'code', self.gf('django.db.models.fields.IntegerField')(null=True, db_column='code')) db.execute("""UPDATE o_b_renseignement SET code = code_old::int8""") db.delete_column('o_b_renseignement', 'code_old')
def forwards(self, orm): # Changing field 'Document.openn_collection' db.alter_column(u'openn_document', 'openn_collection_id', self.gf('django.db.models.fields.related.ForeignKey')(default=2, to=orm['openn.OPennCollection']))
def backwards(self, orm): # Changing field 'Document.openn_collection' db.alter_column(u'openn_document', 'openn_collection_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['openn.OPennCollection'], null=True))
def forwards(self, orm): # Changing field 'Conditions.comments' db.alter_column( u'datacollection_conditions', 'comments', self.gf('django.db.models.fields.CharField')(max_length=255, null=True)) # Changing field 'DiseaseStates.comments' db.alter_column( u'datacollection_diseasestates', 'comments', self.gf('django.db.models.fields.CharField')(max_length=255, null=True)) # Changing field 'CellPops.comments' db.alter_column( u'datacollection_cellpops', 'comments', self.gf('django.db.models.fields.CharField')(max_length=255, null=True)) # Changing field 'Strains.comments' db.alter_column( u'datacollection_strains', 'comments', self.gf('django.db.models.fields.CharField')(max_length=255, null=True)) # Changing field 'Antibodies.comments' db.alter_column( u'datacollection_antibodies', 'comments', self.gf('django.db.models.fields.CharField')(max_length=255, null=True)) # Changing field 'CellTypes.comments' db.alter_column( u'datacollection_celltypes', 'comments', self.gf('django.db.models.fields.CharField')(max_length=255, null=True)) # Changing field 'TissueTypes.comments' db.alter_column( u'datacollection_tissuetypes', 'comments', self.gf('django.db.models.fields.CharField')(max_length=255, null=True)) # Changing field 'CellLines.comments' db.alter_column( u'datacollection_celllines', 'comments', self.gf('django.db.models.fields.CharField')(max_length=255, null=True)) # Adding field 'Samples.update_date' db.add_column(u'datacollection_samples', 'update_date', self.gf('django.db.models.fields.DateTimeField')( default=None, null=True, blank=True), keep_default=False) # Changing field 'Factors.comments' db.alter_column( u'datacollection_factors', 'comments', self.gf('django.db.models.fields.CharField')(max_length=255, null=True))
def backwards(self, orm): # Adding model 'Comment' db.create_table(u'facebook_posts_comment', ( ('graph_id', self.gf('django.db.models.fields.CharField')( max_length=100, unique=True)), ('post', self.gf('django.db.models.fields.related.ForeignKey')( related_name='comments', to=orm['facebook_posts.Post'])), ('can_remove', self.gf('django.db.models.fields.BooleanField')(default=False)), ('created_time', self.gf('django.db.models.fields.DateTimeField')(db_index=True)), ('author_json', self.gf('annoying.fields.JSONField')(null=True)), ('message', self.gf('django.db.models.fields.TextField')()), (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('likes_count', self.gf('django.db.models.fields.IntegerField')(default=0)), ('author_content_type', self.gf('django.db.models.fields.related.ForeignKey')( related_name='facebook_comments', null=True, to=orm['contenttypes.ContentType'])), ('user_likes', self.gf('django.db.models.fields.BooleanField')(default=False)), ('author_id', self.gf('django.db.models.fields.PositiveIntegerField')( null=True, db_index=True)), )) db.send_create_signal(u'facebook_posts', ['Comment']) # Adding M2M table for field like_users on 'Comment' m2m_table_name = db.shorten_name(u'facebook_posts_comment_like_users') db.create_table( m2m_table_name, (('id', models.AutoField( verbose_name='ID', primary_key=True, auto_created=True)), ('comment', models.ForeignKey(orm[u'facebook_posts.comment'], null=False)), ('user', models.ForeignKey(orm[u'facebook_users.user'], null=False)))) db.create_unique(m2m_table_name, ['comment_id', 'user_id']) # Adding M2M table for field like_users on 'Post' m2m_table_name = db.shorten_name(u'facebook_posts_post_like_users') db.create_table( m2m_table_name, (('id', models.AutoField( verbose_name='ID', primary_key=True, auto_created=True)), ('post', models.ForeignKey(orm[u'facebook_posts.post'], null=False)), ('user', models.ForeignKey(orm[u'facebook_users.user'], null=False)))) db.create_unique(m2m_table_name, ['post_id', 'user_id']) # Removing M2M table for field likes_users on 'Post' db.delete_table(db.shorten_name(u'facebook_posts_post_likes_users')) # Changing field 'Post.comments_count' db.alter_column(u'facebook_posts_post', 'comments_count', self.gf('django.db.models.fields.IntegerField')()) # Changing field 'Post.graph_id' db.alter_column( u'facebook_posts_post', 'graph_id', self.gf('django.db.models.fields.CharField')(max_length=100, unique=True)) # Changing field 'Post.shares_count' db.alter_column(u'facebook_posts_post', 'shares_count', self.gf('django.db.models.fields.IntegerField')()) # Changing field 'Post.likes_count' db.alter_column(u'facebook_posts_post', 'likes_count', self.gf('django.db.models.fields.IntegerField')())
def backwards(self, orm): # Changing field 'Crawl.old_id' # (to signature: django.db.models.fields.IntegerField(null=True, blank=True)) db.alter_column('main_crawl', 'old_id', orm['main.crawl:old_id'])
def forwards(self, orm): # Changing field 'ColumnMapping.column_raw' db.alter_column(u'seed_columnmapping', 'column_raw', self.gf('django.db.models.fields.CharField')(max_length=512))
def backwards(self, orm): # Changing field 'Conditions.comments' db.alter_column( u'datacollection_conditions', 'comments', self.gf('django.db.models.fields.TextField')(null=True)) # Changing field 'DiseaseStates.comments' db.alter_column( u'datacollection_diseasestates', 'comments', self.gf('django.db.models.fields.TextField')(null=True)) # Changing field 'CellPops.comments' db.alter_column( u'datacollection_cellpops', 'comments', self.gf('django.db.models.fields.TextField')(null=True)) # Changing field 'Strains.comments' db.alter_column( u'datacollection_strains', 'comments', self.gf('django.db.models.fields.TextField')(null=True)) # Changing field 'Antibodies.comments' db.alter_column( u'datacollection_antibodies', 'comments', self.gf('django.db.models.fields.TextField')(null=True)) # Changing field 'CellTypes.comments' db.alter_column( u'datacollection_celltypes', 'comments', self.gf('django.db.models.fields.TextField')(null=True)) # Changing field 'TissueTypes.comments' db.alter_column( u'datacollection_tissuetypes', 'comments', self.gf('django.db.models.fields.TextField')(null=True)) # Changing field 'CellLines.comments' db.alter_column( u'datacollection_celllines', 'comments', self.gf('django.db.models.fields.TextField')(null=True)) # Deleting field 'Samples.update_date' db.delete_column(u'datacollection_samples', 'update_date') # Changing field 'Factors.comments' db.alter_column( u'datacollection_factors', 'comments', self.gf('django.db.models.fields.TextField')(null=True))
def forwards(self, orm): # Changing field 'NewsItem.short_text' db.alter_column('core_newsitem', 'short_text', self.gf('django.db.models.fields.TextField')())
def forwards(self, orm): # Changing field 'Section.latest_status_at' db.alter_column('core_section', 'latest_status_at', self.gf('django.db.models.fields.DateTimeField')())
def forwards(self, orm): # Changing field 'City.state' db.alter_column('locations_city', 'state_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['locations.State'], null=True, blank=True))
def forwards(self, orm): # Changing field 'Farm.soybean' db.alter_column( u'core_farm', 'soybean', self.gf('django.db.models.fields.IntegerField')(null=True)) # Changing field 'Farm.corn' db.alter_column( u'core_farm', 'corn', self.gf('django.db.models.fields.IntegerField')(null=True)) # Changing field 'Farm.canola_speciality' db.alter_column( u'core_farm', 'canola_speciality', self.gf('django.db.models.fields.IntegerField')(null=True)) # Changing field 'Farm.canola_ll' db.alter_column( u'core_farm', 'canola_ll', self.gf('django.db.models.fields.IntegerField')(null=True)) # Changing field 'Farm.canola_roundup' db.alter_column( u'core_farm', 'canola_roundup', self.gf('django.db.models.fields.IntegerField')(null=True)) # Changing field 'Farm.canola_cl' db.alter_column( u'core_farm', 'canola_cl', self.gf('django.db.models.fields.IntegerField')(null=True))
def forwards(self, orm): # Changing field 'MakahikiLog.post_content' db.alter_column('analytics_makahikilog', 'post_content', self.gf('django.db.models.fields.TextField')())
def backwards(self, orm): # Changing field 'NewsItem.short_text' db.alter_column( 'core_newsitem', 'short_text', self.gf('django.db.models.fields.CharField')(max_length=100))
def forwards(self, orm): # Changing field 'BudgetLine.net_amount_revised' db.alter_column( 'budget_lines_budgetline', 'net_amount_revised', self.gf('django.db.models.fields.IntegerField')(null=True)) # Changing field 'BudgetLine.gross_amount_used' db.alter_column( 'budget_lines_budgetline', 'gross_amount_used', self.gf('django.db.models.fields.IntegerField')(null=True)) # Changing field 'BudgetLine.gross_amount_revised' db.alter_column( 'budget_lines_budgetline', 'gross_amount_revised', self.gf('django.db.models.fields.IntegerField')(null=True)) # Changing field 'BudgetLine.net_amount_allocated' db.alter_column( 'budget_lines_budgetline', 'net_amount_allocated', self.gf('django.db.models.fields.IntegerField')(null=True)) # Changing field 'BudgetLine.net_amount_used' db.alter_column( 'budget_lines_budgetline', 'net_amount_used', self.gf('django.db.models.fields.IntegerField')(null=True)) # Changing field 'BudgetLine.gross_amount_allocated' db.alter_column( 'budget_lines_budgetline', 'gross_amount_allocated', self.gf('django.db.models.fields.IntegerField')(null=True))
def forwards(self, orm): # Changing field 'TwitterServiceTwitterfeed2.id' db.alter_column( u'twitter_service_twitterfeed2', u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True))
def backwards(self, orm): # Changing field 'Contacts.other_contacts' db.alter_column( 'hello_contacts', 'other_contacts', self.gf('django.db.models.fields.TextField')(default=''))
def backwards(self, orm): # Changing field 'MakahikiLog.post_content' db.alter_column( 'analytics_makahikilog', 'post_content', self.gf('django.db.models.fields.CharField')(max_length=4000))
def forwards(self, orm): # Changing field 'Post.content' db.alter_column( u'post', 'content', self.gf('django.db.models.fields.CharField')(max_length=8192))
def forwards(self, orm): # Changing field 'Contacts.other_contacts' db.alter_column( 'hello_contacts', 'other_contacts', self.gf('django.db.models.fields.TextField')(null=True))
def backwards(self, orm): # Changing field 'DocumentMetadata.value' db.alter_column(u'metadata_documentmetadata', 'value', self.gf('django.db.models.fields.CharField')(default='', max_length=255))
def forwards(self, orm): # Changing field 'NetworkInterface.dirty' db.alter_column('db_networkinterface', 'dirty', self.gf('django.db.models.fields.BooleanField')(blank=True)) # Changing field 'VirtualMachine.deleted' db.alter_column('db_virtualmachine', 'deleted', self.gf('django.db.models.fields.BooleanField')(blank=True)) # Adding index on 'VirtualMachine', fields ['deleted'] db.create_index('db_virtualmachine', ['deleted']) # Adding index on 'VirtualMachine', fields ['userid'] db.create_index('db_virtualmachine', ['userid']) # Changing field 'VirtualMachine.suspended' db.alter_column('db_virtualmachine', 'suspended', self.gf('django.db.models.fields.BooleanField')(blank=True)) # Changing field 'Backend.drained' db.alter_column('db_backend', 'drained', self.gf('django.db.models.fields.BooleanField')(blank=True)) # Changing field 'Backend.offline' db.alter_column('db_backend', 'offline', self.gf('django.db.models.fields.BooleanField')(blank=True)) # Changing field 'Flavor.deleted' db.alter_column('db_flavor', 'deleted', self.gf('django.db.models.fields.BooleanField')(blank=True)) # Changing field 'Network.deleted' db.alter_column('db_network', 'deleted', self.gf('django.db.models.fields.BooleanField')(blank=True)) # Adding index on 'Network', fields ['deleted'] db.create_index('db_network', ['deleted']) # Adding index on 'Network', fields ['userid'] db.create_index('db_network', ['userid']) # Changing field 'Network.public' db.alter_column('db_network', 'public', self.gf('django.db.models.fields.BooleanField')(blank=True)) # Adding index on 'Network', fields ['public'] db.create_index('db_network', ['public']) # Changing field 'Network.dhcp' db.alter_column('db_network', 'dhcp', self.gf('django.db.models.fields.BooleanField')(blank=True)) # Changing field 'BackendNetwork.deleted' db.alter_column('db_backendnetwork', 'deleted', self.gf('django.db.models.fields.BooleanField')(blank=True))
def backwards(self, orm): # Changing field 'InstagramImage.product' db.alter_column('instascraper_instagramimage', 'product_id', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['configurable.ConfigurableProduct'], unique=True, null=True)) # Adding unique constraint on 'InstagramImage', fields ['product'] db.create_unique('instascraper_instagramimage', ['product_id'])
def forwards(self, orm): # Changing field 'DocumentMetadata.value' db.alter_column(u'metadata_documentmetadata', 'value', self.gf('django.db.models.fields.CharField')(max_length=255, null=True))
def backwards(self, orm): # Changing field 'Address.email' db.alter_column( 'locations_address', 'email', self.gf('django.db.models.fields.EmailField')(max_length=75))
def forwards(self, orm): # Changing field 'Poll.name' db.alter_column('reader_poll', 'name', self.gf('django.db.models.fields.CharField')(max_length=100))