diff options
| author | Étienne Loks <etienne.loks@proxience.com> | 2015-06-10 22:38:22 +0200 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@proxience.com> | 2015-06-10 22:38:22 +0200 | 
| commit | 85d7a9c7ed6da4d9d07e2a0dfadc2034be55ec85 (patch) | |
| tree | d4d8c7b3b36bab6374deef0c8ed71d4500d3c9b0 | |
| parent | 2b61ae7f85e12d557163efdf1ee06875a0327c4a (diff) | |
| download | Ishtar-85d7a9c7ed6da4d9d07e2a0dfadc2034be55ec85.tar.bz2 Ishtar-85d7a9c7ed6da4d9d07e2a0dfadc2034be55ec85.zip | |
Fix migration after merge
| -rw-r--r-- | archaeological_operations/migrations/0038_auto__add_unique_operation_code_patriarche.py (renamed from archaeological_operations/migrations/0037_auto__add_unique_operation_code_patriarche.py) | 51 | 
1 files changed, 31 insertions, 20 deletions
| diff --git a/archaeological_operations/migrations/0037_auto__add_unique_operation_code_patriarche.py b/archaeological_operations/migrations/0038_auto__add_unique_operation_code_patriarche.py index ea165a108..738aa011d 100644 --- a/archaeological_operations/migrations/0037_auto__add_unique_operation_code_patriarche.py +++ b/archaeological_operations/migrations/0038_auto__add_unique_operation_code_patriarche.py @@ -27,7 +27,6 @@ class Migration(SchemaMigration):          'archaeological_files.file': {              'Meta': {'ordering': "('cached_label',)", 'object_name': 'File'},              'address': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), -            'address_complement': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),              'cached_label': ('django.db.models.fields.CharField', [], {'max_length': '500', 'null': 'True', 'blank': 'True'}),              'cira_advised': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),              'classified_area': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}), @@ -43,7 +42,10 @@ class Migration(SchemaMigration):              'imported_line': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),              'imports': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'imported_archaeological_files_file'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['ishtar_common.Import']"}),              'in_charge': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'file_responsability'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['ishtar_common.Person']"}), +            'instruction_deadline': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),              'internal_reference': ('django.db.models.fields.CharField', [], {'max_length': '60', 'null': 'True', 'blank': 'True'}), +            'locality': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}), +            'main_town': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'file_main'", 'null': 'True', 'to': "orm['ishtar_common.Town']"}),              'mh_listing': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),              'mh_register': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),              'name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}), @@ -53,6 +55,8 @@ class Migration(SchemaMigration):              'permit_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['archaeological_files.PermitType']", 'null': 'True', 'blank': 'True'}),              'postal_code': ('django.db.models.fields.CharField', [], {'max_length': '10', 'null': 'True', 'blank': 'True'}),              'protected_area': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}), +            'raw_general_contractor': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}), +            'raw_town_planning_service': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),              'reception_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),              'reference_number': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),              'related_file': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['archaeological_files.File']", 'null': 'True', 'blank': 'True'}), @@ -72,7 +76,7 @@ class Migration(SchemaMigration):              'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),              'label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), -            'txt_idx': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) +            'txt_idx': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})          },          'archaeological_files.permittype': {              'Meta': {'ordering': "('label',)", 'object_name': 'PermitType'}, @@ -80,16 +84,16 @@ class Migration(SchemaMigration):              'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),              'label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), -            'txt_idx': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) +            'txt_idx': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})          },          'archaeological_files.saisinetype': {              'Meta': {'ordering': "('label',)", 'object_name': 'SaisineType'},              'available': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),              'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), -            'delay': ('django.db.models.fields.IntegerField', [], {}), +            'delay': ('django.db.models.fields.IntegerField', [], {'default': '30'}),              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),              'label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), -            'txt_idx': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) +            'txt_idx': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})          },          'archaeological_operations.acttype': {              'Meta': {'ordering': "('label',)", 'object_name': 'ActType'}, @@ -101,7 +105,7 @@ class Migration(SchemaMigration):              'indexed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),              'intented_to': ('django.db.models.fields.CharField', [], {'max_length': '1'}),              'label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), -            'txt_idx': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) +            'txt_idx': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})          },          'archaeological_operations.administrativeact': {              'Meta': {'ordering': "('year', 'signature_date', 'index', 'act_type')", 'object_name': 'AdministrativeAct'}, @@ -199,7 +203,7 @@ class Migration(SchemaMigration):          },          'archaeological_operations.operation': {              'Meta': {'ordering': "('cached_label',)", 'object_name': 'Operation'}, -            'archaeological_sites': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['archaeological_operations.ArchaeologicalSite']", 'symmetrical': 'False'}), +            'archaeological_sites': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['archaeological_operations.ArchaeologicalSite']", 'null': 'True', 'blank': 'True'}),              'associated_file': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'operations'", 'null': 'True', 'to': "orm['archaeological_files.File']"}),              'cached_label': ('django.db.models.fields.CharField', [], {'max_length': '500', 'null': 'True', 'blank': 'True'}),              'cira_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), @@ -229,8 +233,8 @@ class Migration(SchemaMigration):              'operator': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'operator'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['ishtar_common.Organization']"}),              'operator_reference': ('django.db.models.fields.CharField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),              'optional_man_days': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}), -            'periods': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['archaeological_operations.Period']", 'symmetrical': 'False'}), -            'remains': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['archaeological_operations.RemainType']", 'symmetrical': 'False'}), +            'periods': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['archaeological_operations.Period']", 'null': 'True', 'blank': 'True'}), +            'remains': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['archaeological_operations.RemainType']", 'null': 'True', 'blank': 'True'}),              'report_delivery_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),              'scheduled_man_days': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),              'scientist': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'operation_scientist_responsability'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['ishtar_common.Person']"}), @@ -276,7 +280,7 @@ class Migration(SchemaMigration):              'label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),              'order': ('django.db.models.fields.IntegerField', [], {'default': '1'}),              'preventive': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), -            'txt_idx': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) +            'txt_idx': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})          },          'archaeological_operations.parcel': {              'Meta': {'ordering': "('year', 'section', 'parcel_number')", 'object_name': 'Parcel'}, @@ -289,7 +293,7 @@ class Migration(SchemaMigration):              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),              'imports': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'imported_archaeological_operations_parcel'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['ishtar_common.Import']"}),              'operation': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'parcels'", 'null': 'True', 'to': "orm['archaeological_operations.Operation']"}), -            'parcel_number': ('django.db.models.fields.CharField', [], {'max_length': '6'}), +            'parcel_number': ('django.db.models.fields.CharField', [], {'max_length': '6', 'null': 'True', 'blank': 'True'}),              'section': ('django.db.models.fields.CharField', [], {'max_length': '4'}),              'town': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'parcels'", 'to': "orm['ishtar_common.Town']"}),              'year': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}) @@ -316,7 +320,7 @@ class Migration(SchemaMigration):              'order': ('django.db.models.fields.IntegerField', [], {}),              'parent': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['archaeological_operations.Period']", 'null': 'True', 'blank': 'True'}),              'start_date': ('django.db.models.fields.IntegerField', [], {}), -            'txt_idx': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) +            'txt_idx': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})          },          'archaeological_operations.remaintype': {              'Meta': {'ordering': "('label',)", 'object_name': 'RemainType'}, @@ -324,7 +328,7 @@ class Migration(SchemaMigration):              'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),              'label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), -            'txt_idx': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) +            'txt_idx': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})          },          'auth.group': {              'Meta': {'object_name': 'Group'}, @@ -380,7 +384,7 @@ class Migration(SchemaMigration):              'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),              'label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), -            'txt_idx': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) +            'txt_idx': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})          },          'ishtar_common.canton': {              'Meta': {'object_name': 'Canton'}, @@ -392,7 +396,8 @@ class Migration(SchemaMigration):              'Meta': {'ordering': "['number']", 'object_name': 'Department'},              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),              'label': ('django.db.models.fields.CharField', [], {'max_length': '30'}), -            'number': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '3'}) +            'number': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '3'}), +            'state': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ishtar_common.State']", 'null': 'True', 'blank': 'True'})          },          'ishtar_common.documenttemplate': {              'Meta': {'ordering': "['associated_object_name', 'name']", 'object_name': 'DocumentTemplate'}, @@ -408,7 +413,7 @@ class Migration(SchemaMigration):              'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),              'label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), -            'txt_idx': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) +            'txt_idx': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})          },          'ishtar_common.import': {              'Meta': {'object_name': 'Import'}, @@ -464,7 +469,7 @@ class Migration(SchemaMigration):              'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),              'label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), -            'txt_idx': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) +            'txt_idx': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})          },          'ishtar_common.person': {              'Meta': {'object_name': 'Person'}, @@ -497,7 +502,7 @@ class Migration(SchemaMigration):              'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['auth.Group']", 'null': 'True', 'blank': 'True'}),              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),              'label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), -            'txt_idx': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) +            'txt_idx': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})          },          'ishtar_common.sourcetype': {              'Meta': {'object_name': 'SourceType'}, @@ -505,7 +510,13 @@ class Migration(SchemaMigration):              'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),              'label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), -            'txt_idx': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) +            'txt_idx': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}) +        }, +        'ishtar_common.state': { +            'Meta': {'ordering': "['number']", 'object_name': 'State'}, +            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), +            'label': ('django.db.models.fields.CharField', [], {'max_length': '30'}), +            'number': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '3'})          },          'ishtar_common.supporttype': {              'Meta': {'object_name': 'SupportType'}, @@ -513,7 +524,7 @@ class Migration(SchemaMigration):              'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),              'label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), -            'txt_idx': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) +            'txt_idx': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})          },          'ishtar_common.town': {              'Meta': {'ordering': "['numero_insee']", 'object_name': 'Town'}, | 
