|
|
|
|
@ -8,37 +8,37 @@ from django.db import models |
|
|
|
|
class Migration(SchemaMigration): |
|
|
|
|
|
|
|
|
|
def forwards(self, orm): |
|
|
|
|
# Adding model 'LandingParticipationCommentTranslation' |
|
|
|
|
db.create_table(u'settings_landingparticipationcomment_translation', ( |
|
|
|
|
# Adding model 'ParticipationComment' |
|
|
|
|
db.create_table(u'settings_participationcomment', ( |
|
|
|
|
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), |
|
|
|
|
('logo', self.gf('django.db.models.fields.files.ImageField')(max_length=255)), |
|
|
|
|
)) |
|
|
|
|
db.send_create_signal(u'settings', ['ParticipationComment']) |
|
|
|
|
|
|
|
|
|
# Adding model 'ParticipationCommentTranslation' |
|
|
|
|
db.create_table(u'settings_participationcomment_translation', ( |
|
|
|
|
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), |
|
|
|
|
('text', self.gf('django.db.models.fields.TextField')()), |
|
|
|
|
('name', self.gf('django.db.models.fields.CharField')(max_length=255)), |
|
|
|
|
('position', self.gf('django.db.models.fields.CharField')(max_length=255)), |
|
|
|
|
('language_code', self.gf('django.db.models.fields.CharField')(max_length=15, db_index=True)), |
|
|
|
|
('master', self.gf('django.db.models.fields.related.ForeignKey')(related_name='translations', null=True, to=orm['settings.LandingParticipationComment'])), |
|
|
|
|
('master', self.gf('django.db.models.fields.related.ForeignKey')(related_name='translations', null=True, to=orm['settings.ParticipationComment'])), |
|
|
|
|
)) |
|
|
|
|
db.send_create_signal(u'settings', ['LandingParticipationCommentTranslation']) |
|
|
|
|
db.send_create_signal(u'settings', ['ParticipationCommentTranslation']) |
|
|
|
|
|
|
|
|
|
# Adding unique constraint on 'LandingParticipationCommentTranslation', fields ['language_code', 'master'] |
|
|
|
|
db.create_unique(u'settings_landingparticipationcomment_translation', ['language_code', 'master_id']) |
|
|
|
|
|
|
|
|
|
# Adding model 'LandingParticipationComment' |
|
|
|
|
db.create_table(u'settings_landingparticipationcomment', ( |
|
|
|
|
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), |
|
|
|
|
('logo', self.gf('django.db.models.fields.files.ImageField')(max_length=255)), |
|
|
|
|
)) |
|
|
|
|
db.send_create_signal(u'settings', ['LandingParticipationComment']) |
|
|
|
|
# Adding unique constraint on 'ParticipationCommentTranslation', fields ['language_code', 'master'] |
|
|
|
|
db.create_unique(u'settings_participationcomment_translation', ['language_code', 'master_id']) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def backwards(self, orm): |
|
|
|
|
# Removing unique constraint on 'LandingParticipationCommentTranslation', fields ['language_code', 'master'] |
|
|
|
|
db.delete_unique(u'settings_landingparticipationcomment_translation', ['language_code', 'master_id']) |
|
|
|
|
# Removing unique constraint on 'ParticipationCommentTranslation', fields ['language_code', 'master'] |
|
|
|
|
db.delete_unique(u'settings_participationcomment_translation', ['language_code', 'master_id']) |
|
|
|
|
|
|
|
|
|
# Deleting model 'LandingParticipationCommentTranslation' |
|
|
|
|
db.delete_table(u'settings_landingparticipationcomment_translation') |
|
|
|
|
# Deleting model 'ParticipationComment' |
|
|
|
|
db.delete_table(u'settings_participationcomment') |
|
|
|
|
|
|
|
|
|
# Deleting model 'LandingParticipationComment' |
|
|
|
|
db.delete_table(u'settings_landingparticipationcomment') |
|
|
|
|
# Deleting model 'ParticipationCommentTranslation' |
|
|
|
|
db.delete_table(u'settings_participationcomment_translation') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
models = { |
|
|
|
|
@ -68,16 +68,16 @@ class Migration(SchemaMigration): |
|
|
|
|
'position': ('django.db.models.fields.CharField', [], {'max_length': '255'}), |
|
|
|
|
'text': ('django.db.models.fields.TextField', [], {}) |
|
|
|
|
}, |
|
|
|
|
u'settings.landingparticipationcomment': { |
|
|
|
|
'Meta': {'unique_together': '()', 'object_name': 'LandingParticipationComment', 'index_together': '()'}, |
|
|
|
|
u'settings.participationcomment': { |
|
|
|
|
'Meta': {'unique_together': '()', 'object_name': 'ParticipationComment', 'index_together': '()'}, |
|
|
|
|
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
|
|
|
'logo': ('django.db.models.fields.files.ImageField', [], {'max_length': '255'}) |
|
|
|
|
}, |
|
|
|
|
u'settings.landingparticipationcommenttranslation': { |
|
|
|
|
'Meta': {'unique_together': "[('language_code', 'master')]", 'object_name': 'LandingParticipationCommentTranslation', 'db_table': "u'settings_landingparticipationcomment_translation'", 'index_together': '()'}, |
|
|
|
|
u'settings.participationcommenttranslation': { |
|
|
|
|
'Meta': {'unique_together': "[('language_code', 'master')]", 'object_name': 'ParticipationCommentTranslation', 'db_table': "u'settings_participationcomment_translation'", 'index_together': '()'}, |
|
|
|
|
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
|
|
|
'language_code': ('django.db.models.fields.CharField', [], {'max_length': '15', 'db_index': 'True'}), |
|
|
|
|
'master': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'translations'", 'null': 'True', 'to': u"orm['settings.LandingParticipationComment']"}), |
|
|
|
|
'master': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'translations'", 'null': 'True', 'to': u"orm['settings.ParticipationComment']"}), |
|
|
|
|
'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), |
|
|
|
|
'position': ('django.db.models.fields.CharField', [], {'max_length': '255'}), |
|
|
|
|
'text': ('django.db.models.fields.TextField', [], {}) |