Python south.db.db.send_create_signal() Examples
The following are 30
code examples of south.db.db.send_create_signal().
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: 0001_initial.py From django-connected with BSD 3-Clause "New" or "Revised" License | 6 votes |
def forwards(self, orm): # Adding model 'Account' db.create_table(u'connected_accounts_account', ( (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'])), ('provider', self.gf('django.db.models.fields.CharField')(max_length=50)), ('uid', self.gf('django.db.models.fields.CharField')(max_length=255)), ('last_login', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)), ('date_added', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)), ('raw_token', self.gf('django.db.models.fields.TextField')()), ('oauth_token', self.gf('django.db.models.fields.TextField')()), ('oauth_token_secret', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), ('extra_data', self.gf('jsonfield.fields.JSONField')()), ('expires_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)), )) db.send_create_signal(u'connected_accounts', ['Account'])
Example #2
Source File: 0002_auto__add_layer__add_config.py From urbanfootprint with GNU General Public License v3.0 | 6 votes |
def forwards(self, orm): # Adding model 'Layer' db.create_table('tilestache_layer', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('key', self.gf('django.db.models.fields.CharField')(max_length=200, db_index=True)), ('value', self.gf('jsonfield.fields.JSONField')()), ('updated', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)), )) db.send_create_signal(u'tilestache_uf', ['Layer']) # Adding model 'Config' db.create_table('tilestache_config', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('name', self.gf('django.db.models.fields.CharField')(default='default', max_length=50)), ('cache', self.gf('jsonfield.fields.JSONField')()), ('loglevel', self.gf('django.db.models.fields.CharField')(default='INFO', max_length=10)), )) db.send_create_signal(u'tilestache_uf', ['Config'])
Example #3
Source File: 0001_initial.py From openduty with MIT License | 6 votes |
def forwards(self, orm): # Adding model 'UserNotificationMethod' db.create_table('openduty_usernotificationmethod', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='notification_methods', to=orm['auth.User'])), ('position', self.gf('django.db.models.fields.IntegerField')()), ('method', self.gf('django.db.models.fields.CharField')(max_length=50)), )) db.send_create_signal(u'notification', ['UserNotificationMethod']) # Adding model 'ScheduledNotification' db.create_table('openduty_schedulednotification', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('notifier', self.gf('django.db.models.fields.CharField')(max_length=30)), ('message', self.gf('django.db.models.fields.CharField')(max_length=500)), ('user_to_notify', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])), ('send_at', self.gf('django.db.models.fields.DateTimeField')()), ('incident', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['openduty.Incident'])), )) db.send_create_signal(u'notification', ['ScheduledNotification'])
Example #4
Source File: 0001_initial.py From baobab with GNU General Public License v3.0 | 6 votes |
def forwards(self, orm): # Adding model 'Event' db.create_table(u'socialnetwork_event', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('event', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['backoffice.Event'])), ('name', self.gf('django.db.models.fields.CharField')(max_length=10)), ('sn_id', self.gf('django.db.models.fields.CharField')(max_length=30)), )) db.send_create_signal(u'socialnetwork', ['Event']) # Adding unique constraint on 'Event', fields ['event', 'name'] db.create_unique(u'socialnetwork_event', ['event_id', 'name']) # Adding model 'EventLog' db.create_table(u'socialnetwork_eventlog', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('eventlog', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['backoffice.EventLog'])), ('name', self.gf('django.db.models.fields.CharField')(max_length=10)), ('sn_id', self.gf('django.db.models.fields.CharField')(max_length=30)), )) db.send_create_signal(u'socialnetwork', ['EventLog']) # Adding unique constraint on 'EventLog', fields ['eventlog', 'name'] db.create_unique(u'socialnetwork_eventlog', ['eventlog_id', 'name'])
Example #5
Source File: 0001_initial.py From django-rest-authemail with GNU General Public License v3.0 | 6 votes |
def forwards(self, orm): # Adding model 'SignupCode' db.create_table(u'authemail_signupcode', ( ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['accounts.MyUser'])), ('code', self.gf('django.db.models.fields.CharField')(max_length=40, primary_key=True)), ('created_at', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)), ('ipaddr', self.gf('django.db.models.fields.GenericIPAddressField')(max_length=39)), )) db.send_create_signal(u'authemail', ['SignupCode']) # Adding model 'PasswordResetCode' db.create_table(u'authemail_passwordresetcode', ( ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['accounts.MyUser'])), ('code', self.gf('django.db.models.fields.CharField')(max_length=40, primary_key=True)), ('created_at', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)), )) db.send_create_signal(u'authemail', ['PasswordResetCode'])
Example #6
Source File: 0009_auto__del_scaglandusedefinition__del_scaglanduse__add_scagdmlandusedef.py From urbanfootprint with GNU General Public License v3.0 | 6 votes |
def forwards(self, orm): # Deleting model 'ScagLandUseDefinition' db.delete_table(u'main_scaglandusedefinition') # Deleting model 'ScagLandUse' db.delete_table(u'main_scaglanduse') # Adding model 'ScagDmLandUseDefinition' db.create_table(u'main_scagdmlandusedefinition', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('land_use_description', self.gf('django.db.models.fields.CharField')(max_length=100, null=True, blank=True)), ('land_use_type', self.gf('django.db.models.fields.CharField')(max_length=100, null=True, blank=True)), ('land_use', self.gf('django.db.models.fields.IntegerField')()), )) db.send_create_signal('main', ['ScagDmLandUseDefinition']) # Adding model 'ScagDmLandUse' db.create_table(u'main_scagdmlanduse', ( (u'builtform_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['main.BuiltForm'], unique=True, primary_key=True)), ('land_use_definition', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['main.ScagDmLandUseDefinition'])), )) db.send_create_signal('main', ['ScagDmLandUse'])
Example #7
Source File: 0001_initial.py From django-htk with MIT License | 6 votes |
def forwards(self, orm): # Adding model 'Feedback' db.create_table(u'htk_feedback', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('site', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['sites.Site'])), ('user', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='feedback', null=True, to=orm['auth.User'])), ('name', self.gf('django.db.models.fields.CharField')(max_length=100, null=True, blank=True)), ('comment', self.gf('django.db.models.fields.CharField')(max_length=2000, null=True, blank=True)), ('email', self.gf('django.db.models.fields.EmailField')(max_length=100, null=True, blank=True)), ('uri', self.gf('django.db.models.fields.CharField')(max_length=200, null=True, blank=True)), ('processed', self.gf('django.db.models.fields.BooleanField')(default=False)), ('needs_followup', self.gf('django.db.models.fields.BooleanField')(default=True)), ('date_created', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), )) db.send_create_signal('htk', ['Feedback']) # Adding model 'PrelaunchSignup' db.create_table(u'htk_prelaunchsignup', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('site', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['sites.Site'])), ('email', self.gf('django.db.models.fields.EmailField')(max_length=75, null=True, blank=True)), ('date_created', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), )) db.send_create_signal('htk', ['PrelaunchSignup'])
Example #8
Source File: 0003_auto__add_htkshorturl__add_htkshorturlaccess.py From django-htk with MIT License | 6 votes |
def forwards(self, orm): # Adding model 'HTKShortUrl' db.create_table(u'htk_htkshorturl', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('url', self.gf('django.db.models.fields.CharField')(max_length=256)), ('creator', self.gf('django.db.models.fields.related.ForeignKey')(related_name='short_urls', on_delete=models.SET_DEFAULT, default=None, to=orm['auth.User'], blank=True, null=True)), ('created_on', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2015, 2, 21, 0, 0), auto_now_add=True, blank=True)), )) db.send_create_signal('htk', ['HTKShortUrl']) # Adding model 'HTKShortUrlAccess' db.create_table(u'htk_htkshorturlaccess', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('url', self.gf('django.db.models.fields.related.ForeignKey')(related_name='accesses', to=orm['htk.HTKShortUrl'])), ('timestamp', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)), ('user', self.gf('django.db.models.fields.related.ForeignKey')(default=None, to=orm['auth.User'], null=True, on_delete=models.SET_DEFAULT, blank=True)), ('user_agent', self.gf('django.db.models.fields.CharField')(max_length=256, blank=True)), ('user_ip', self.gf('django.db.models.fields.CharField')(max_length=15, blank=True)), ('referrer', self.gf('django.db.models.fields.CharField')(max_length=256, blank=True)), )) db.send_create_signal('htk', ['HTKShortUrlAccess'])
Example #9
Source File: 0009_auto__del_scaglandusedefinition__del_scaglanduse__add_scagdmlandusedef.py From urbanfootprint with GNU General Public License v3.0 | 6 votes |
def backwards(self, orm): # Adding model 'ScagLandUseDefinition' db.create_table(u'main_scaglandusedefinition', ( ('land_use_description', self.gf('django.db.models.fields.CharField')(max_length=100, null=True, blank=True)), ('land_use_type', self.gf('django.db.models.fields.CharField')(max_length=100, null=True, blank=True)), (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('land_use', self.gf('django.db.models.fields.IntegerField')()), )) db.send_create_signal('main', ['ScagLandUseDefinition']) # Adding model 'ScagLandUse' db.create_table(u'main_scaglanduse', ( (u'builtform_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['main.BuiltForm'], unique=True, primary_key=True)), ('land_use_definition', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['main.ScagLandUseDefinition'])), )) db.send_create_signal('main', ['ScagLandUse']) # Deleting model 'ScagDmLandUseDefinition' db.delete_table(u'main_scagdmlandusedefinition') # Deleting model 'ScagDmLandUse' db.delete_table(u'main_scagdmlanduse')
Example #10
Source File: 0006_auto__add_flowbit.py From scirius with GNU General Public License v3.0 | 6 votes |
def forwards(self, orm): # Adding model 'Flowbit' db.create_table(u'rules_flowbit', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('name', self.gf('django.db.models.fields.CharField')(max_length=100)), ('set', self.gf('django.db.models.fields.BooleanField')(default=False)), ('isset', self.gf('django.db.models.fields.BooleanField')(default=False)), ('enable', self.gf('django.db.models.fields.BooleanField')(default=True)), ('source', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['rules.Source'])), )) db.send_create_signal(u'rules', ['Flowbit']) # Adding M2M table for field flowbits on 'Rule' m2m_table_name = db.shorten_name(u'rules_rule_flowbits') db.create_table(m2m_table_name, ( ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), ('rule', models.ForeignKey(orm[u'rules.rule'], null=False)), ('flowbit', models.ForeignKey(orm[u'rules.flowbit'], null=False)) )) db.create_unique(m2m_table_name, ['rule_id', 'flowbit_id'])
Example #11
Source File: 0001_initial.py From Collaboration-System with GNU General Public License v2.0 | 6 votes |
def forwards(self, orm): # Adding model 'Badge' db.create_table('badges_badge', ( ('id', self.gf('django.db.models.fields.CharField')(max_length=255, primary_key=True)), ('level', self.gf('django.db.models.fields.CharField')(max_length=1)), ('icon', self.gf('django.db.models.fields.files.ImageField')(max_length=100)), )) db.send_create_signal('badges', ['Badge']) # Adding model 'BadgeToUser' db.create_table('badges_badgetouser', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('badge', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['badges.Badge'])), ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])), ('created', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), )) db.send_create_signal('badges', ['BadgeToUser'])
Example #12
Source File: 0002_auto__add_intrinsicsyntheticdecomposition.py From opensurfaces with MIT License | 6 votes |
def forwards(self, orm): # Adding model 'IntrinsicSyntheticDecomposition' db.create_table(u'intrinsic_intrinsicsyntheticdecomposition', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('photo', self.gf('django.db.models.fields.related.OneToOneField')(related_name='intrinsic_synthetic', unique=True, to=orm['photos.Photo'])), ('scene_artist', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)), ('scene_url', self.gf('django.db.models.fields.URLField')(max_length=255, blank=True)), ('multilayer_exr', self.gf('django.db.models.fields.files.FileField')(max_length=255, null=True, blank=True)), ('md5', self.gf('django.db.models.fields.CharField')(unique=True, max_length=32)), ('env_thumb', self.gf('django.db.models.fields.files.ImageField')(max_length=255, null=True, blank=True)), ('emit_thumb', self.gf('django.db.models.fields.files.ImageField')(max_length=255, null=True, blank=True)), ('depth_thumb', self.gf('django.db.models.fields.files.ImageField')(max_length=255, null=True, blank=True)), ('normal_thumb', self.gf('django.db.models.fields.files.ImageField')(max_length=255, null=True, blank=True)), ('diff_col_thumb', self.gf('django.db.models.fields.files.ImageField')(max_length=255, null=True, blank=True)), ('diff_ind_thumb', self.gf('django.db.models.fields.files.ImageField')(max_length=255, null=True, blank=True)), ('diff_dir_thumb', self.gf('django.db.models.fields.files.ImageField')(max_length=255, null=True, blank=True)), ('gloss_col_thumb', self.gf('django.db.models.fields.files.ImageField')(max_length=255, null=True, blank=True)), ('gloss_ind_thumb', self.gf('django.db.models.fields.files.ImageField')(max_length=255, null=True, blank=True)), ('gloss_dir_thumb', self.gf('django.db.models.fields.files.ImageField')(max_length=255, null=True, blank=True)), ('trans_col_thumb', self.gf('django.db.models.fields.files.ImageField')(max_length=255, null=True, blank=True)), ('trans_ind_thumb', self.gf('django.db.models.fields.files.ImageField')(max_length=255, null=True, blank=True)), ('trans_dir_thumb', self.gf('django.db.models.fields.files.ImageField')(max_length=255, null=True, blank=True)), )) db.send_create_signal(u'intrinsic', ['IntrinsicSyntheticDecomposition'])
Example #13
Source File: 0003_auto__del_reference__add_sourceupdate__chg_field_source_uri__del_field.py From scirius with GNU General Public License v3.0 | 5 votes |
def forwards(self, orm): # Deleting model 'Reference' db.delete_table(u'rules_reference') # Adding model 'SourceUpdate' db.create_table(u'rules_sourceupdate', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('source', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['rules.Source'])), ('created_date', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2014, 7, 31, 0, 0), blank=True)), ('data', self.gf('django.db.models.fields.TextField')()), ('version', self.gf('django.db.models.fields.CharField')(max_length=42)), )) db.send_create_signal(u'rules', ['SourceUpdate']) # Changing field 'Source.uri' db.alter_column(u'rules_source', 'uri', self.gf('django.db.models.fields.CharField')(max_length=400, null=True)) # Deleting field 'Rule.id' db.delete_column(u'rules_rule', u'id') # Removing M2M table for field references on 'Rule' db.delete_table(db.shorten_name(u'rules_rule_references')) # Changing field 'Rule.sid' db.alter_column(u'rules_rule', 'sid', self.gf('django.db.models.fields.IntegerField')(primary_key=True))
Example #14
Source File: 0002_auto__add_cancellation.py From django-happenings with BSD 2-Clause "Simplified" License | 5 votes |
def forwards(self, orm): # Adding model 'Cancellation' db.create_table('happenings_cancellation', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('event', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['happenings.Event'], related_name='cancellations')), ('reason', self.gf('django.db.models.fields.CharField')(max_length=255)), ('date', self.gf('django.db.models.fields.DateField')()), )) db.send_create_signal('happenings', ['Cancellation'])
Example #15
Source File: 0003_auto__del_reference__add_sourceupdate__chg_field_source_uri__del_field.py From scirius with GNU General Public License v3.0 | 5 votes |
def backwards(self, orm): # Adding model 'Reference' db.create_table(u'rules_reference', ( ('value', self.gf('django.db.models.fields.CharField')(max_length=1000)), (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('key', self.gf('django.db.models.fields.CharField')(max_length=100)), )) db.send_create_signal(u'rules', ['Reference']) # Deleting model 'SourceUpdate' db.delete_table(u'rules_sourceupdate') # Changing field 'Source.uri' db.alter_column(u'rules_source', 'uri', self.gf('django.db.models.fields.CharField')(default=1, max_length=400)) # Adding field 'Rule.id' db.add_column(u'rules_rule', u'id', self.gf('django.db.models.fields.AutoField')(default=1, primary_key=True), keep_default=False) # Adding M2M table for field references on 'Rule' m2m_table_name = db.shorten_name(u'rules_rule_references') db.create_table(m2m_table_name, ( ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), ('rule', models.ForeignKey(orm[u'rules.rule'], null=False)), ('reference', models.ForeignKey(orm[u'rules.reference'], null=False)) )) db.create_unique(m2m_table_name, ['rule_id', 'reference_id']) # Changing field 'Rule.sid' db.alter_column(u'rules_rule', 'sid', self.gf('django.db.models.fields.IntegerField')(unique=True))
Example #16
Source File: 0007_auto__add_systemsettings.py From scirius with GNU General Public License v3.0 | 5 votes |
def forwards(self, orm): # Adding model 'SystemSettings' db.create_table(u'rules_systemsettings', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('use_http_proxy', self.gf('django.db.models.fields.BooleanField')(default=False)), ('http_proxy', self.gf('django.db.models.fields.CharField')(default='', max_length=200, blank=True)), ('https_proxy', self.gf('django.db.models.fields.CharField')(default='', max_length=200, blank=True)), ('use_elasticsearch', self.gf('django.db.models.fields.BooleanField')(default=True)), )) db.send_create_signal(u'rules', ['SystemSettings'])
Example #17
Source File: 0001_initial.py From djangocms-oscar with MIT License | 5 votes |
def forwards(self, orm): # Adding model 'FeaturedProduct' db.create_table(u'djangocms_oscar_featuredproduct', ( (u'cmsplugin_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['cms.CMSPlugin'], unique=True, primary_key=True)), ('product', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catalogue.Product'])), )) db.send_create_signal(u'djangocms_oscar', ['FeaturedProduct'])
Example #18
Source File: 0003_auto__add_mmcemail.py From django-mmc with GNU General Public License v2.0 | 5 votes |
def forwards(self, orm): # Adding model 'MMCEmail' db.create_table('mmc_mmcemail', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('created', self.gf('django.db.models.fields.DateField')(auto_now=True, blank=True)), ('email', self.gf('django.db.models.fields.EmailField')(max_length=75)), ('is_active', self.gf('django.db.models.fields.BooleanField')(default=True)), )) db.send_create_signal('mmc', ['MMCEmail'])
Example #19
Source File: 0001_initial.py From django-mmc with GNU General Public License v2.0 | 5 votes |
def forwards(self, orm): # Adding model 'MMCHost' db.create_table('mmc_mmchost', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('created', self.gf('django.db.models.fields.DateField')(auto_now=True, blank=True)), ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)), )) db.send_create_signal('mmc', ['MMCHost']) # Adding model 'MMCScript' db.create_table('mmc_mmcscript', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('created', self.gf('django.db.models.fields.DateField')(auto_now=True, blank=True)), ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)), )) db.send_create_signal('mmc', ['MMCScript']) # Adding model 'MMCLog' db.create_table('mmc_mmclog', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('created', self.gf('django.db.models.fields.DateField')(auto_now=True, blank=True)), ('start', self.gf('django.db.models.fields.DateTimeField')()), ('end', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)), ('elapsed', self.gf('django.db.models.fields.FloatField')()), ('hostname', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['mmc.MMCHost'])), ('script', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['mmc.MMCScript'])), ('success', self.gf('django.db.models.fields.BooleanField')(default=False)), ('error_message', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), ('traceback', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), ('sys_argv', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True)), )) db.send_create_signal('mmc', ['MMCLog'])
Example #20
Source File: 0001_initial.py From cmsplugin-forms-builder with BSD 3-Clause "New" or "Revised" License | 5 votes |
def forwards(self, orm): # Adding model 'PluginForm' db.create_table(u'cmsplugin_forms_builder_pluginform', ( (u'cmsplugin_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['cms.CMSPlugin'], unique=True, primary_key=True)), ('form', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forms.Form'])), )) db.send_create_signal(u'cmsplugin_forms_builder', ['PluginForm'])
Example #21
Source File: 0006_auto__del_approvalstatus.py From urbanfootprint with GNU General Public License v3.0 | 5 votes |
def backwards(self, orm): # Adding model 'ApprovalStatus' db.create_table(u'main_approvalstatus', ( ('name', self.gf('django.db.models.fields.CharField')(max_length=1024)), ('description', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), ('key', self.gf('django.db.models.fields.CharField')(max_length=120, unique=True)), (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), )) db.send_create_signal('main', ['ApprovalStatus'])
Example #22
Source File: 0009_auto__add_incidentsilenced.py From openduty with MIT License | 5 votes |
def forwards(self, orm): # Adding model 'IncidentSilenced' db.create_table(u'openduty_incidentsilenced', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('incident', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['openduty.Incident'])), ('silenced', self.gf('django.db.models.fields.BooleanField')(default=False)), ('silenced_until', self.gf('django.db.models.fields.DateTimeField')()), )) db.send_create_signal(u'openduty', ['IncidentSilenced'])
Example #23
Source File: 0008_auto__add_servicesilenced.py From openduty with MIT License | 5 votes |
def forwards(self, orm): # Adding model 'ServiceSilenced' db.create_table(u'openduty_servicesilenced', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('service', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['openduty.Service'])), ('silenced', self.gf('django.db.models.fields.BooleanField')(default=False)), ('silenced_until', self.gf('django.db.models.fields.DateTimeField')()), )) db.send_create_signal(u'openduty', ['ServiceSilenced'])
Example #24
Source File: 0001_initial.py From acacia_main with MIT License | 5 votes |
def forwards(self, orm): # Adding model 'Session' db.create_table('user_sessions_session', ( ('session_key', self.gf('django.db.models.fields.CharField')(max_length=40, primary_key=True)), ('session_data', self.gf('django.db.models.fields.TextField')()), ('expire_date', self.gf('django.db.models.fields.DateTimeField')(db_index=True)), ('user', self.gf('django.db.models.fields.related.ForeignKey')(null=True, to=orm[user_orm_label])), ('user_agent', self.gf('django.db.models.fields.CharField')(max_length=200)), ('last_activity', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)), ('ip', self.gf('django.db.models.fields.GenericIPAddressField')(max_length=39)), )) db.send_create_signal('user_sessions', ['Session'])
Example #25
Source File: 0002_auto__del_cacheddata.py From opensurfaces with MIT License | 5 votes |
def backwards(self, orm): # Adding model 'CachedData' db.create_table(u'common_cacheddata', ( ('data', self.gf('django.db.models.fields.TextField')(blank=True)), ('key', self.gf('django.db.models.fields.CharField')(max_length=127, unique=True, primary_key=True)), )) db.send_create_signal(u'common', ['CachedData'])
Example #26
Source File: 0001_initial.py From opensurfaces with MIT License | 5 votes |
def forwards(self, orm): # Adding model 'CachedData' db.create_table(u'common_cacheddata', ( ('key', self.gf('django.db.models.fields.CharField')(unique=True, max_length=127, primary_key=True)), ('data', self.gf('django.db.models.fields.TextField')(blank=True)), )) db.send_create_signal(u'common', ['CachedData'])
Example #27
Source File: 0003_auto__add_papercitation.py From opensurfaces with MIT License | 5 votes |
def forwards(self, orm): # Adding model 'PaperCitation' db.create_table(u'common_papercitation', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('slug', self.gf('django.db.models.fields.CharField')(unique=True, max_length=128)), ('inline_citation', self.gf('django.db.models.fields.CharField')(max_length=128, blank=True)), ('authors', self.gf('django.db.models.fields.TextField')(blank=True)), ('title', self.gf('django.db.models.fields.TextField')(blank=True)), ('journal', self.gf('django.db.models.fields.TextField')(blank=True)), ('url', self.gf('django.db.models.fields.URLField')(max_length=200, blank=True)), )) db.send_create_signal(u'common', ['PaperCitation'])
Example #28
Source File: 0002_auto__del_materialshapenicenesslabel__del_field_materialshape_nice__de.py From opensurfaces with MIT License | 5 votes |
def backwards(self, orm): # Adding model 'MaterialShapeNicenessLabel' db.create_table(u'shapes_materialshapenicenesslabel', ( ('quality_method', self.gf('django.db.models.fields.CharField')(max_length=1, null=True, blank=True)), ('admin_score', self.gf('django.db.models.fields.IntegerField')(default=0)), ('time_active_ms', self.gf('django.db.models.fields.IntegerField')(blank=True, null=True, db_index=True)), ('canttell', self.gf('django.db.models.fields.NullBooleanField')(null=True, blank=True)), ('shape', self.gf('django.db.models.fields.related.ForeignKey')(related_name='nicenesses', to=orm['shapes.MaterialShape'])), ('added', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['accounts.UserProfile'])), (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('mturk_assignment', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, to=orm['mturk.MtAssignment'], on_delete=models.SET_NULL, blank=True)), ('invalid', self.gf('django.db.models.fields.BooleanField')(default=False)), ('sandbox', self.gf('django.db.models.fields.BooleanField')(default=False)), ('time_ms', self.gf('django.db.models.fields.IntegerField')(blank=True, null=True, db_index=True)), ('reward', self.gf('django.db.models.fields.DecimalField')(null=True, max_digits=8, decimal_places=4, blank=True)), ('nice', self.gf('django.db.models.fields.BooleanField')(default=False)), )) db.send_create_signal(u'shapes', ['MaterialShapeNicenessLabel']) # Adding field 'MaterialShape.nice' db.add_column(u'shapes_materialshape', 'nice', self.gf('django.db.models.fields.NullBooleanField')(null=True, blank=True), keep_default=False) # Adding field 'MaterialShape.nice_score' db.add_column(u'shapes_materialshape', 'nice_score', self.gf('django.db.models.fields.FloatField')(null=True, blank=True), keep_default=False)
Example #29
Source File: 0008_auto__del_intrinsicimagesalgorithmbest__add_field_intrinsicimagesalgor.py From opensurfaces with MIT License | 5 votes |
def backwards(self, orm): # Adding model 'IntrinsicImagesAlgorithmBest' db.create_table(u'intrinsic_intrinsicimagesalgorithmbest', ( ('active', self.gf('django.db.models.fields.BooleanField')(default=False)), (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('best_algorithm', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['intrinsic.IntrinsicImagesAlgorithm'], null=True, blank=True)), ('slug', self.gf('django.db.models.fields.CharField')(max_length=128, unique=True)), )) db.send_create_signal(u'intrinsic', ['IntrinsicImagesAlgorithmBest']) # Deleting field 'IntrinsicImagesAlgorithm.iiw_best' db.delete_column(u'intrinsic_intrinsicimagesalgorithm', 'iiw_best')
Example #30
Source File: 0028_auto__add_organization__add_field_documentsetformentry_organization__a.py From crowdata with MIT License | 5 votes |
def forwards(self, orm): # Adding model 'Organization' db.create_table(u'crowdataapp_organization', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('name', self.gf('django.db.models.fields.CharField')(max_length='128')), ('description', self.gf('django.db.models.fields.TextField')()), )) db.send_create_signal(u'crowdataapp', ['Organization']) # Adding M2M table for field users on 'Organization' m2m_table_name = db.shorten_name(u'crowdataapp_organization_users') db.create_table(m2m_table_name, ( ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), ('organization', models.ForeignKey(orm[u'crowdataapp.organization'], null=False)), ('user', models.ForeignKey(orm[u'auth.user'], null=False)) )) db.create_unique(m2m_table_name, ['organization_id', 'user_id']) # Adding field 'DocumentSetFormEntry.organization' db.add_column(u'crowdataapp_documentsetformentry', 'organization', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['crowdataapp.Organization'], null=True, blank=True), keep_default=False) # Adding field 'UserProfile.current_organization' db.add_column(u'crowdataapp_userprofile', 'current_organization', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['crowdataapp.Organization'], null=True, blank=True), keep_default=False)