diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-01-10 01:29:32 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-01-10 01:29:32 +0100 |
| commit | af0a78363693fed0b2b86d575ea3e5c072831586 (patch) | |
| tree | 9e803367c9a7551785d07dd70deb7343379f36b7 | |
| parent | a95e41815be353f717e5a9347166e0bbc486c687 (diff) | |
| parent | 713fd6d8393d40c72db9e14872ad6d88933ad82a (diff) | |
| download | Ishtar-af0a78363693fed0b2b86d575ea3e5c072831586.tar.bz2 Ishtar-af0a78363693fed0b2b86d575ea3e5c072831586.zip | |
Merge branch 'v0.9' into wheezy
| -rw-r--r-- | archaeological_finds/migrations/0013_auto__add_treatmentfilesource__add_treatmentfile__add_unique_treatment.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/archaeological_finds/migrations/0013_auto__add_treatmentfilesource__add_treatmentfile__add_unique_treatment.py b/archaeological_finds/migrations/0013_auto__add_treatmentfilesource__add_treatmentfile__add_unique_treatment.py index fedb39be8..969dac2e6 100644 --- a/archaeological_finds/migrations/0013_auto__add_treatmentfilesource__add_treatmentfile__add_unique_treatment.py +++ b/archaeological_finds/migrations/0013_auto__add_treatmentfilesource__add_treatmentfile__add_unique_treatment.py @@ -3,11 +3,17 @@ import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models +from archaeological_finds.models_treatments import FindTreatments, \ + FindDownstreamTreatments, FindUpstreamTreatments class Migration(SchemaMigration): def forwards(self, orm): + sql = FindTreatments.DELETE_SQL + sql += FindUpstreamTreatments.DELETE_SQL + sql += FindDownstreamTreatments.DELETE_SQL + db.execute(sql) # Adding model 'TreatmentFileSource' db.create_table('archaeological_finds_treatmentfilesource', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), @@ -329,6 +335,10 @@ class Migration(SchemaMigration): # Changing field 'Treatment.external_id' db.alter_column('archaeological_finds_treatment', 'external_id', self.gf('django.db.models.fields.CharField')(max_length=200, null=True)) + sql = FindUpstreamTreatments.CREATE_SQL + sql += FindDownstreamTreatments.CREATE_SQL + sql += FindTreatments.CREATE_SQL + db.execute(sql) def backwards(self, orm): # Removing unique constraint on 'TreatmentFile', fields ['year', 'index'] @@ -1638,4 +1648,4 @@ class Migration(SchemaMigration): } } - complete_apps = ['archaeological_finds']
\ No newline at end of file + complete_apps = ['archaeological_finds'] |
