def backwards(self, orm): db = dbs['stats'] db.dry_run = south.db.db.dry_run # Adding model 'HoudiniUsageLog' db.create_table(u'houdini_stats_houdiniusagelog', ( ('stats_machine_config', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['stats_main.MachineConfig'])), ('key', self.gf('django.db.models.fields.CharField')(max_length=100)), ('date', self.gf('django.db.models.fields.DateTimeField')()), ('message', self.gf('django.db.models.fields.TextField')(default='')), (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), )) db.send_create_signal(u'houdini_stats', ['HoudiniUsageLog']) # Adding model 'HoudiniUsageFlag' db.create_table(u'houdini_stats_houdiniusageflag', ( ('date', self.gf('django.db.models.fields.DateTimeField')()), ('stats_machine_config', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['stats_main.MachineConfig'])), (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'houdini_stats', ['HoudiniUsageFlag']) # Deleting model 'HoudiniLog' db.delete_table(u'houdini_stats_houdinilog') # Deleting model 'HoudiniFlag' db.delete_table(u'houdini_stats_houdiniflag')
def forwards(self, orm): db = dbs['stats'] db.dry_run = south.db.db.dry_run # Deleting model 'HoudiniUsageLog' db.delete_table(u'houdini_stats_houdiniusagelog') # Deleting model 'HoudiniUsageFlag' db.delete_table(u'houdini_stats_houdiniusageflag') # Adding model 'HoudiniLog' db.create_table(u'houdini_stats_houdinilog', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('stats_machine_config', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['stats_main.MachineConfig'])), ('date', self.gf('django.db.models.fields.DateTimeField')()), ('key', self.gf('django.db.models.fields.CharField')(max_length=100)), ('timestamp', self.gf('django.db.models.fields.DecimalField')(max_digits=10, decimal_places=6)), ('log_entry', self.gf('django.db.models.fields.CharField')(max_length=100)), )) db.send_create_signal(u'houdini_stats', ['HoudiniLog']) # Adding model 'HoudiniFlag' db.create_table(u'houdini_stats_houdiniflag', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('stats_machine_config', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['stats_main.MachineConfig'])), ('date', self.gf('django.db.models.fields.DateTimeField')()), ('key', self.gf('django.db.models.fields.CharField')(max_length=100)), )) db.send_create_signal(u'houdini_stats', ['HoudiniFlag'])
def forwards(self, orm): db = dbs['stats'] db.dry_run = south.db.db.dry_run # Adding model 'ErrorLog' db.create_table(u'stats_main_errorlog', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('description', self.gf('django.db.models.fields.TextField')(default='', blank=True)), ('stack_trace', self.gf('django.db.models.fields.TextField')(default='', blank=True)), ('date', self.gf('django.db.models.fields.DateTimeField')()), )) db.send_create_signal(u'stats_main', ['ErrorLog'])
def forwards(self, orm): db = dbs['stats'] db.dry_run = south.db.db.dry_run # Adding model 'LogId' db.create_table(u'houdini_stats_logid', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('log_id', self.gf('django.db.models.fields.CharField')(max_length=40)), ('machine_config', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['houdini_stats.MachineConfig'])), ('logging_date', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)), )) db.send_create_signal(u'houdini_stats', ['LogId'])
def forwards(self, orm): db = dbs['stats'] db.dry_run = south.db.db.dry_run # Adding model 'Event' db.create_table(u'houdini_stats_event', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('title', self.gf('django.db.models.fields.CharField')(max_length=40)), ('date', self.gf('django.db.models.fields.DateTimeField')()), ('description', self.gf('django.db.models.fields.TextField')(default='', blank=True)), )) db.send_create_signal(u'houdini_stats', ['Event'])
def backwards(self, orm): db = dbs['stats'] db.dry_run = south.db.db.dry_run # Adding model 'HoudiniPersistentStats' db.create_table(u'houdini_stats_houdinipersistentstats', ( ('stats_machine_config', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['stats_main.MachineConfig'])), ('value', self.gf('django.db.models.fields.CharField')(max_length=100)), ('key', self.gf('django.db.models.fields.CharField')(max_length=100)), ('date', self.gf('django.db.models.fields.DateTimeField')()), (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), )) db.send_create_signal(u'houdini_stats', ['HoudiniPersistentStats'])
def forwards(self, orm): db = dbs['stats'] db.dry_run = south.db.db.dry_run # Adding model 'HoudiniSumAndCount' db.create_table(u'houdini_stats_houdinisumandcount', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('stats_machine_config', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['stats_main.MachineConfig'])), ('date', self.gf('django.db.models.fields.DateTimeField')()), ('key', self.gf('django.db.models.fields.CharField')(max_length=100)), ('sum', self.gf('django.db.models.fields.DecimalField')(max_digits=10, decimal_places=6)), ('count', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)), )) db.send_create_signal(u'houdini_stats', ['HoudiniSumAndCount'])
def forwards(self, orm): db = dbs['stats'] db.dry_run = south.db.db.dry_run # Adding model 'HoudiniCrashGroup' db.create_table(u'houdini_stats_houdinicrashgroup', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('representative_stack_trace', self.gf('django.db.models.fields.TextField')(default='', blank=True)), ('fixed_in_houdini_build', self.gf('django.db.models.fields.CharField')(default='', max_length=12)), ('is_fixed', self.gf('django.db.models.fields.BooleanField')(default=False)), )) db.send_create_signal(u'houdini_stats', ['HoudiniCrashGroup']) # Adding field 'HoudiniCrash.group' db.add_column(u'houdini_stats_houdinicrash', 'group', self.gf('django.db.models.fields.related.ForeignKey')(default=None, null=True, to=orm['houdini_stats.HoudiniCrashGroup']), keep_default=False)
def forwards(self, orm): # Adding model 'MachineConfig' db = dbs['stats'] db.dry_run = south.db.db.dry_run db.create_table('houdini_stats_machineconfig', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('hardware_id', self.gf('django.db.models.fields.IntegerField')()), ('ip_address', self.gf('django.db.models.fields.CharField')(max_length=25)), ('last_active_date', self.gf('django.db.models.fields.DateTimeField')()), ('config_hash', self.gf('django.db.models.fields.CharField')(max_length=5)), ('houdini_major_version', self.gf('django.db.models.fields.IntegerField')(default=0)), ('houdini_minor_version', self.gf('django.db.models.fields.IntegerField')(default=0)), ('houdini_build_number', self.gf('django.db.models.fields.CharField')(max_length=10)), ('product', self.gf('django.db.models.fields.CharField')(max_length=20)), ('graphics_card', self.gf('django.db.models.fields.CharField')(max_length=20)), ('graphics_card_version', self.gf('django.db.models.fields.CharField')(max_length=20)), ('operating_system', self.gf('django.db.models.fields.CharField')(max_length=20)), ('system_memory', self.gf('django.db.models.fields.FloatField')(default=0)), ('system_resolution', self.gf('django.db.models.fields.CharField')(max_length=10)), ('number_of_processors', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)), ('cpu_info', self.gf('django.db.models.fields.CharField')(max_length=10)), )) db.send_create_signal('houdini_stats', ['MachineConfig']) # Adding model 'HoudiniCrash' db.create_table('houdini_stats_houdinicrash', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('machine_config', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['houdini_stats.MachineConfig'])), ('date', self.gf('django.db.models.fields.DateTimeField')()), ('stack_trace', self.gf('django.db.models.fields.TextField')(default='', blank=True)), )) db.send_create_signal('houdini_stats', ['HoudiniCrash']) # Adding model 'NodeTypeUsage' db.create_table('houdini_stats_nodetypeusage', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('machine_config', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['houdini_stats.MachineConfig'])), ('date', self.gf('django.db.models.fields.DateTimeField')()), ('node_type', self.gf('django.db.models.fields.CharField')(max_length=20)), ('count', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)), ('is_builtin', self.gf('django.db.models.fields.BooleanField')(default=True)), ('is_asset', self.gf('django.db.models.fields.BooleanField')(default=False)), )) db.send_create_signal('houdini_stats', ['NodeTypeUsage']) # Adding model 'Uptime' db.create_table('houdini_stats_uptime', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('machine_config', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['houdini_stats.MachineConfig'])), ('date', self.gf('django.db.models.fields.DateTimeField')()), ('number_of_seconds', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)), )) db.send_create_signal('houdini_stats', ['Uptime'])
def forwards(self, orm): db = dbs['stats'] db.dry_run = south.db.db.dry_run # Adding model 'HoudiniPersistentStats' db.create_table(u'houdini_stats_houdinipersistentstats', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('stats_machine_config', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['stats_main.MachineConfig'])), ('date', self.gf('django.db.models.fields.DateTimeField')()), ('key', self.gf('django.db.models.fields.CharField')(max_length=100)), ('value', self.gf('django.db.models.fields.CharField')(max_length=100)), )) db.send_create_signal(u'houdini_stats', ['HoudiniPersistentStats']) # Changing field 'HoudiniSumAndCount.sum' db.alter_column(u'houdini_stats_houdinisumandcount', 'sum', self.gf('django.db.models.fields.FloatField')()) # Changing field 'HoudiniLog.timestamp' db.alter_column(u'houdini_stats_houdinilog', 'timestamp', self.gf('django.db.models.fields.FloatField')())
def forwards(self, orm): db = dbs['stats'] db.dry_run = south.db.db.dry_run # Adding model 'HoudiniPersistentStatsEntry' db.create_table(u'houdini_stats_houdinipersistentstatsentry', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('persistent_stats', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['houdini_stats.HoudiniPersistentStats'])), ('persistent_stats_kvp', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['houdini_stats.HoudiniPersistentStatsKeyValuePair'])), )) db.send_create_signal(u'houdini_stats', ['HoudiniPersistentStatsEntry']) # Adding model 'HoudiniPersistentStatsKeyValuePair' db.create_table(u'houdini_stats_houdinipersistentstatskeyvaluepair', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('key', self.gf('django.db.models.fields.CharField')(max_length=100)), ('value', self.gf('django.db.models.fields.CharField')(max_length=100)), )) db.send_create_signal(u'houdini_stats', ['HoudiniPersistentStatsKeyValuePair']) # Adding model 'HoudiniPersistentStats' db.create_table(u'houdini_stats_houdinipersistentstats', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('date', self.gf('django.db.models.fields.DateTimeField')()), ('machine', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['stats_main.Machine'])), ('houdini_major_version', self.gf('django.db.models.fields.IntegerField')(default=0)), ('houdini_minor_version', self.gf('django.db.models.fields.IntegerField')(default=0)), ('hash', self.gf('django.db.models.fields.CharField')(max_length=80)), )) db.send_create_signal(u'houdini_stats', ['HoudiniPersistentStats'])
def forwards(self, orm): # Adding model 'Machine' db = dbs['stats'] db.dry_run = south.db.db.dry_run db.create_table(u'houdini_stats_machine', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('hardware_id', self.gf('django.db.models.fields.CharField')(default='', max_length=40)), )) db.send_create_signal(u'houdini_stats', ['Machine']) # Deleting field 'MachineConfig.last_active_date' db.rename_column( u'houdini_stats_machineconfig', 'last_active_date', 'creation_date') # Deleting field 'MachineConfig.hardware_id' db.delete_column(u'houdini_stats_machineconfig', 'hardware_id') # Adding field 'MachineConfig.machine' db.add_column(u'houdini_stats_machineconfig', 'machine', self.gf('django.db.models.fields.related.ForeignKey')( to=orm['houdini_stats.Machine']), keep_default=False)
def forwards(self, orm): db = dbs['stats'] db.dry_run = south.db.db.dry_run # Adding model 'Machine' db.create_table(u'stats_main_machine', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('hardware_id', self.gf('django.db.models.fields.CharField')(default='', max_length=80)), )) db.send_create_signal(u'stats_main', ['Machine']) # Adding model 'MachineConfig' db.create_table(u'stats_main_machineconfig', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('machine', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['stats_main.Machine'])), ('creation_date', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)), ('config_hash', self.gf('django.db.models.fields.CharField')(max_length=80)), ('ip_address', self.gf('django.db.models.fields.CharField')(max_length=25, blank=True)), ('graphics_card', self.gf('django.db.models.fields.CharField')(max_length=40, blank=True)), ('graphics_card_version', self.gf('django.db.models.fields.CharField')(max_length=40, blank=True)), ('operating_system', self.gf('django.db.models.fields.CharField')(max_length=40, blank=True)), ('system_memory', self.gf('django.db.models.fields.FloatField')(default=0, blank=True)), ('system_resolution', self.gf('django.db.models.fields.CharField')(max_length=40, blank=True)), ('number_of_processors', self.gf('django.db.models.fields.PositiveIntegerField')(default=0, blank=True)), ('cpu_info', self.gf('django.db.models.fields.CharField')(max_length=60, blank=True)), ('raw_user_info', self.gf('django.db.models.fields.TextField')(default='', blank=True)), )) db.send_create_signal(u'stats_main', ['MachineConfig']) # Adding model 'LogId' db.create_table(u'stats_main_logid', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('log_id', self.gf('django.db.models.fields.CharField')(max_length=80)), ('machine_config', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['stats_main.MachineConfig'])), ('logging_date', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)), )) db.send_create_signal(u'stats_main', ['LogId']) # Adding model 'Event' db.create_table(u'stats_main_event', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('title', self.gf('django.db.models.fields.CharField')(max_length=40)), ('date', self.gf('django.db.models.fields.DateTimeField')()), ('description', self.gf('django.db.models.fields.TextField')(default='', blank=True)), ('show', self.gf('django.db.models.fields.BooleanField')(default=False)), )) db.send_create_signal(u'stats_main', ['Event'])
def backwards(self, orm): db = dbs['stats'] db.dry_run = south.db.db.dry_run # Adding model 'Machine' db.create_table(u'houdini_stats_machine', ( ('hardware_id', self.gf('django.db.models.fields.CharField')(default='', max_length=80)), (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), )) db.send_create_signal(u'houdini_stats', ['Machine']) # Adding model 'MachineConfig' db.create_table(u'houdini_stats_machineconfig', ( ('machine', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['houdini_stats.Machine'])), ('graphics_card', self.gf('django.db.models.fields.CharField')(max_length=40, blank=True)), ('product', self.gf('django.db.models.fields.CharField')(max_length=40, blank=True)), ('is_apprentice', self.gf('django.db.models.fields.BooleanField')(default=False)), ('operating_system', self.gf('django.db.models.fields.CharField')(max_length=40, blank=True)), ('houdini_build_number', self.gf('django.db.models.fields.CharField')(default=0, max_length=10)), ('houdini_minor_version', self.gf('django.db.models.fields.IntegerField')(default=0)), ('config_hash', self.gf('django.db.models.fields.CharField')(max_length=80)), ('system_memory', self.gf('django.db.models.fields.FloatField')(default=0, blank=True)), ('raw_user_info', self.gf('django.db.models.fields.TextField')(default='', blank=True)), ('creation_date', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)), ('ip_address', self.gf('django.db.models.fields.CharField')(max_length=25, blank=True)), ('cpu_info', self.gf('django.db.models.fields.CharField')(max_length=60, blank=True)), ('system_resolution', self.gf('django.db.models.fields.CharField')(max_length=40, blank=True)), ('houdini_major_version', self.gf('django.db.models.fields.IntegerField')(default=0)), ('number_of_processors', self.gf('django.db.models.fields.PositiveIntegerField')(default=0, blank=True)), ('graphics_card_version', self.gf('django.db.models.fields.CharField')(max_length=40, blank=True)), (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), )) db.send_create_signal(u'houdini_stats', ['MachineConfig']) # Adding field 'HoudiniCrash.machine_config' db.add_column(u'houdini_stats_houdinicrash', 'machine_config', self.gf('django.db.models.fields.related.ForeignKey')(default=1, to=orm['houdini_stats.MachineConfig']), keep_default=False) # Adding field 'HoudiniUsageLog.machine_config' db.add_column(u'houdini_stats_houdiniusagelog', 'machine_config', self.gf('django.db.models.fields.related.ForeignKey')(default=1, to=orm['houdini_stats.MachineConfig']), keep_default=False) # Adding field 'HoudiniToolUsage.machine_config' db.add_column(u'houdini_stats_houdinitoolusage', 'machine_config', self.gf('django.db.models.fields.related.ForeignKey')(default=1, to=orm['houdini_stats.MachineConfig']), keep_default=False) # Adding field 'HoudiniUsageCount.machine_config' db.add_column(u'houdini_stats_houdiniusagecount', 'machine_config', self.gf('django.db.models.fields.related.ForeignKey')(default=1, to=orm['houdini_stats.MachineConfig']), keep_default=False) # Adding field 'Uptime.machine_config' db.add_column(u'houdini_stats_uptime', 'machine_config', self.gf('django.db.models.fields.related.ForeignKey')(default=1, to=orm['houdini_stats.MachineConfig']), keep_default=False) # Adding field 'HoudiniUsageFlag.machine_config' db.add_column(u'houdini_stats_houdiniusageflag', 'machine_config', self.gf('django.db.models.fields.related.ForeignKey')(default=1, to=orm['houdini_stats.MachineConfig']), keep_default=False)