Skip to content

Commit

Permalink
Merge pull request #1072 from gustavofonseca/tk888_limpeza_migracoes
Browse files Browse the repository at this point in the history
Fixes #888 - Limpeza de migrações
  • Loading branch information
gustavofonseca committed Mar 19, 2015
2 parents e862052 + f27a697 commit 797b505
Show file tree
Hide file tree
Showing 98 changed files with 633 additions and 29,930 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ dbsetup:
@python $(MANAGE) loaddata $(FIXTURES_DIR)/groups.json --settings=$(SETTINGS)

loaddata:
@python $(MANAGE) loaddata $(APP_PATH)/journalmanager/fixtures/use_licenses.json --settings=$(SETTINGS)
@python $(MANAGE) loaddata $(FIXTURES_DIR)/subject_categories.json --settings=$(SETTINGS)
@python $(MANAGE) loaddata $(FIXTURES_DIR)/study_area.json --settings=$(SETTINGS)

Expand Down
208 changes: 177 additions & 31 deletions scielomanager/articletrack/migrations/0001_initial.py

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

303 changes: 0 additions & 303 deletions scielomanager/articletrack/migrations/0011_auto__add_team.py

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

55 changes: 43 additions & 12 deletions scielomanager/editorialmanager/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def forwards(self, orm):
# Adding model 'EditorialBoard'
db.create_table('editorialmanager_editorialboard', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('issue', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['journalmanager.Issue'])),
('issue', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['journalmanager.Issue'], unique=True)),
))
db.send_create_signal('editorialmanager', ['EditorialBoard'])

Expand All @@ -22,24 +22,42 @@ def forwards(self, orm):
('board', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['editorialmanager.EditorialBoard'])),
('first_name', self.gf('django.db.models.fields.CharField')(max_length=256)),
('last_name', self.gf('django.db.models.fields.CharField')(max_length=256)),
('email', self.gf('django.db.models.fields.EmailField')(max_length=75)),
('institution', self.gf('django.db.models.fields.CharField')(max_length=256, null=True, blank=True)),
('email', self.gf('django.db.models.fields.EmailField')(max_length=75, null=True, blank=True)),
('institution', self.gf('django.db.models.fields.CharField')(default='', max_length=256)),
('link_cv', self.gf('django.db.models.fields.URLField')(max_length=200, null=True, blank=True)),
('city', self.gf('django.db.models.fields.CharField')(max_length=256, null=True, blank=True)),
('state', self.gf('django.db.models.fields.CharField')(max_length=256, null=True, blank=True)),
('country', self.gf('django.db.models.fields.CharField')(max_length=256, null=True, blank=True)),
('country', self.gf('django_countries.fields.CountryField')(default='', max_length=2)),
('research_id', self.gf('django.db.models.fields.CharField')(max_length=256, null=True, blank=True)),
('orcid', self.gf('django.db.models.fields.CharField')(max_length=256, null=True, blank=True)),
('order', self.gf('django.db.models.fields.IntegerField')(default=1)),
))
db.send_create_signal('editorialmanager', ['EditorialMember'])

# Adding model 'RoleType'
db.create_table('editorialmanager_roletype', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=256)),
('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=256)),
))
db.send_create_signal('editorialmanager', ['RoleType'])

# Adding model 'RoleTypeTranslation'
db.create_table('editorialmanager_roletypetranslation', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('role', self.gf('django.db.models.fields.related.ForeignKey')(related_name='translations', to=orm['editorialmanager.RoleType'])),
('name', self.gf('django.db.models.fields.CharField')(default='', max_length=256)),
('language', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['journalmanager.Language'])),
))
db.send_create_signal('editorialmanager', ['RoleTypeTranslation'])

# Adding unique constraint on 'RoleTypeTranslation', fields ['role', 'language']
db.create_unique('editorialmanager_roletypetranslation', ['role_id', 'language_id'])


def backwards(self, orm):
# Removing unique constraint on 'RoleTypeTranslation', fields ['role', 'language']
db.delete_unique('editorialmanager_roletypetranslation', ['role_id', 'language_id'])

# Deleting model 'EditorialBoard'
db.delete_table('editorialmanager_editorialboard')

Expand All @@ -49,6 +67,9 @@ def backwards(self, orm):
# Deleting model 'RoleType'
db.delete_table('editorialmanager_roletype')

# Deleting model 'RoleTypeTranslation'
db.delete_table('editorialmanager_roletypetranslation')


models = {
'auth.group': {
Expand Down Expand Up @@ -90,26 +111,36 @@ def backwards(self, orm):
'editorialmanager.editorialboard': {
'Meta': {'object_name': 'EditorialBoard'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'issue': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['journalmanager.Issue']"})
'issue': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['journalmanager.Issue']", 'unique': 'True'})
},
'editorialmanager.editorialmember': {
'Meta': {'object_name': 'EditorialMember'},
'Meta': {'ordering': "('board', 'order', 'pk')", 'object_name': 'EditorialMember'},
'board': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['editorialmanager.EditorialBoard']"}),
'city': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
'country': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
'email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
'country': ('django_countries.fields.CountryField', [], {'default': "''", 'max_length': '2'}),
'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
'first_name': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'institution': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
'institution': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256'}),
'last_name': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
'link_cv': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
'orcid': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
'order': ('django.db.models.fields.IntegerField', [], {'default': '1'}),
'research_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
'role': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['editorialmanager.RoleType']"}),
'state': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'})
},
'editorialmanager.roletype': {
'Meta': {'object_name': 'RoleType'},
'Meta': {'ordering': "('name',)", 'object_name': 'RoleType'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '256'})
},
'editorialmanager.roletypetranslation': {
'Meta': {'unique_together': "(('role', 'language'),)", 'object_name': 'RoleTypeTranslation'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'})
'language': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['journalmanager.Language']"}),
'name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256'}),
'role': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'translations'", 'to': "orm['editorialmanager.RoleType']"})
},
'journalmanager.collection': {
'Meta': {'ordering': "['name']", 'object_name': 'Collection'},
Expand Down
Loading

0 comments on commit 797b505

Please sign in to comment.