Python south.db.db.delete_column() Examples

The following are 30 code examples of south.db.db.delete_column(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module south.db.db , or try the search function .
Example #1
Source File: 0034_add_field_Instance_json.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def backwards(self, orm):
        # Deleting field 'Instance.json'
        db.delete_column(u'odk_logger_instance', 'json') 
Example #2
Source File: 0016_auto__add_field_export_export_url.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def backwards(self, orm):
        # Deleting field 'Export.export_url'
        db.delete_column('odk_viewer_export', 'export_url') 
Example #3
Source File: 0003_auto__add_field_xform_deleted.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def backwards(self, orm):
        
        # Deleting field 'XForm.deleted'
        db.delete_column('odk_logger_xform', 'deleted') 
Example #4
Source File: 0011_auto__del_field_export_filepath__add_field_export_filedir.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def forwards(self, orm):
        
        # Deleting field 'Export.filepath'
        db.delete_column('odk_viewer_export', 'filepath')

        # Adding field 'Export.filedir'
        db.add_column('odk_viewer_export', 'filedir', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True), keep_default=False) 
Example #5
Source File: 0011_auto__del_field_export_filepath__add_field_export_filedir.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def backwards(self, orm):
        
        # Adding field 'Export.filepath'
        db.add_column('odk_viewer_export', 'filepath', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True), keep_default=False)

        # Deleting field 'Export.filedir'
        db.delete_column('odk_viewer_export', 'filedir') 
Example #6
Source File: 0007_auto__add_field_export_export_type.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def backwards(self, orm):
        
        # Deleting field 'Export.export_type'
        db.delete_column('odk_viewer_export', 'export_type') 
Example #7
Source File: 0015_auto__del_field_export__status__add_field_export_internal_status.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def forwards(self, orm):
        # Deleting field 'Export._status'
        db.delete_column('odk_viewer_export', '_status')

        # Adding field 'Export.internal_status'
        db.add_column('odk_viewer_export', 'internal_status',
                      self.gf('django.db.models.fields.SmallIntegerField')(default=0, max_length=1),
                      keep_default=False) 
Example #8
Source File: 0003_auto__add_field_datadictionary_user.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def backwards(self, orm):
        
        # Deleting field 'DataDictionary.user'
        db.delete_column('odk_viewer_datadictionary', 'user_id') 
Example #9
Source File: 0014_auto__add_field_export__status.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def backwards(self, orm):
        # Deleting field 'Export._status'
        db.delete_column('odk_viewer_export', '_status') 
Example #10
Source File: 0044_auto__del_field_xform_is_crowd_form.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def forwards(self, orm):
        # Deleting field 'XForm.is_crowd_form'
        db.delete_column(u'logger_xform', 'is_crowd_form') 
Example #11
Source File: 0015_auto__del_field_export__status__add_field_export_internal_status.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def backwards(self, orm):
        # Adding field 'Export._status'
        db.add_column('odk_viewer_export', '_status',
                      self.gf('django.db.models.fields.SmallIntegerField')(default=0, max_length=1),
                      keep_default=False)

        # Deleting field 'Export.internal_status'
        db.delete_column('odk_viewer_export', 'internal_status') 
Example #12
Source File: 0025_auto__add_field_xform_encrypted.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def backwards(self, orm):
        # Deleting field 'XForm.encrypted'
        db.delete_column('odk_logger_xform', 'encrypted') 
Example #13
Source File: 0016_auto__add_field_xform_bamboo_dataset.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def backwards(self, orm):
        
        # Deleting field 'XForm.bamboo_dataset'
        db.delete_column('odk_logger_xform', 'bamboo_dataset') 
Example #14
Source File: 0045_auto__add_field_xform_require_auth.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def backwards(self, orm):
        # Deleting field 'XForm.require_auth'
        db.delete_column(u'logger_xform', 'require_auth') 
Example #15
Source File: 0031_auto__add_field_xform_last_submission_time.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def backwards(self, orm):
        # Deleting field 'XForm.last_submission_time'
        db.delete_column(u'odk_logger_xform', 'last_submission_time') 
Example #16
Source File: 0017_auto__add_field_instance_deleted_at.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def backwards(self, orm):
        
        # Deleting field 'Instance.deleted_at'
        db.delete_column('odk_logger_instance', 'deleted_at') 
Example #17
Source File: 0013_auto__add_field_instance_uuid.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def backwards(self, orm):
        
        # Deleting field 'Instance.uuid'
        db.delete_column('odk_logger_instance', 'uuid') 
Example #18
Source File: 0032_added_xform_to_ziggy_submissions.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def backwards(self, orm):
        # Deleting field 'ZiggyInstance.xform'
        db.delete_column(u'odk_logger_ziggyinstance', 'xform_id') 
Example #19
Source File: 0021_auto__add_field_instancehistory_uuid.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def backwards(self, orm):
        
        # Deleting field 'InstanceHistory.uuid'
        db.delete_column('odk_logger_instancehistory', 'uuid') 
Example #20
Source File: 0039_auto__del_field_xform_surveys_with_geopoints__add_field_xform_instance.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def forwards(self, orm):
        # Deleting field 'XForm.surveys_with_geopoints'
        db.delete_column(u'odk_logger_xform', 'surveys_with_geopoints')

        # Adding field 'XForm.instances_with_geopoints'
        db.add_column(u'odk_logger_xform', 'instances_with_geopoints',
                      self.gf('django.db.models.fields.BooleanField')(default=False),
                      keep_default=False) 
Example #21
Source File: 0040_auto__add_field_instance_geom.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def backwards(self, orm):
        # Deleting field 'Instance.geom'
        db.delete_column(u'odk_logger_instance', 'geom') 
Example #22
Source File: 0007_auto__add_field_xform_has_start_time.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def backwards(self, orm):
        
        # Deleting field 'XForm.has_start_time'
        db.delete_column('odk_logger_xform', 'has_start_time') 
Example #23
Source File: 0027_added_instance_is_deleted.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def backwards(self, orm):
        # Removing index on 'Instance', fields ['xform']
        db.delete_index('odk_logger_instance', ['xform_id', 'is_deleted'])
        # Deleting field 'Instance.is_deleted'
        db.delete_column('odk_logger_instance', 'is_deleted') 
Example #24
Source File: 0037_auto__del_field_instance_start_time__del_field_instance_date.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def forwards(self, orm):
        # Deleting field 'Instance.start_time'
        db.delete_column(u'odk_logger_instance', 'start_time')

        # Deleting field 'Instance.date'
        db.delete_column(u'odk_logger_instance', 'date') 
Example #25
Source File: 0005_auto__add_field_project_metadata.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def backwards(self, orm):
        # Deleting field 'Project.metadata'
        db.delete_column(u'api_project', 'metadata') 
Example #26
Source File: 0006_auto__add_field_project_shared.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def backwards(self, orm):
        # Deleting field 'Project.shared'
        db.delete_column(u'api_project', 'shared') 
Example #27
Source File: 0014_added_metadata_field_to_user_profile.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def backwards(self, orm):
        # Deleting field 'UserProfile.metadata'
        db.delete_column(u'main_userprofile', 'metadata') 
Example #28
Source File: 0006_auto__add_field_userprofile_require_auth.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def backwards(self, orm):
        
        # Deleting field 'UserProfile.require_auth'
        db.delete_column('main_userprofile', 'require_auth') 
Example #29
Source File: 0007_auto__add_field_metadata_data_file_type.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def backwards(self, orm):
        
        # Deleting field 'MetaData.data_file_type'
        db.delete_column('main_metadata', 'data_file_type') 
Example #30
Source File: 0010_auto__add_field_userprofile_created_by.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def backwards(self, orm):
        # Deleting field 'UserProfile.created_by'
        db.delete_column(u'main_userprofile', 'created_by_id')