summaryrefslogtreecommitdiff
path: root/ishtar_common/migrations
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2022-03-31 17:38:31 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2022-12-12 12:21:00 +0100
commitbd5db67b05654d8c79b18035cf33853da3541d48 (patch)
tree8c890597afae74c44266ccbec14882a772a201d4 /ishtar_common/migrations
parent221599192781585f4c7ca20dffdcf781b14ac3b9 (diff)
downloadIshtar-bd5db67b05654d8c79b18035cf33853da3541d48.tar.bz2
Ishtar-bd5db67b05654d8c79b18035cf33853da3541d48.zip
Geodata: gpkg, shp import
Diffstat (limited to 'ishtar_common/migrations')
-rw-r--r--ishtar_common/migrations/0219_auto_20220407_1952.py39
1 files changed, 39 insertions, 0 deletions
diff --git a/ishtar_common/migrations/0219_auto_20220407_1952.py b/ishtar_common/migrations/0219_auto_20220407_1952.py
new file mode 100644
index 000000000..4ec916d63
--- /dev/null
+++ b/ishtar_common/migrations/0219_auto_20220407_1952.py
@@ -0,0 +1,39 @@
+# Generated by Django 2.2.24 on 2022-04-07 19:52
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('contenttypes', '0002_remove_content_type_name'),
+ ('ishtar_common', '0218_auto_20220329_1121'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='geovectordata',
+ name='import_key',
+ field=models.TextField(blank=True, help_text='Use this for update imports', null=True, verbose_name='Import key'),
+ ),
+ migrations.AddField(
+ model_name='geovectordata',
+ name='imports',
+ field=models.ManyToManyField(blank=True, related_name='imported_ishtar_common_geovectordata', to='ishtar_common.Import'),
+ ),
+ migrations.AddField(
+ model_name='ishtarsiteprofile',
+ name='srs',
+ field=models.ForeignKey(blank=True, help_text='Set it to the most used spatial reference system. Warning: after change launch the ishtar_migrate_srid script.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='profile_srs', to='ishtar_common.SpatialReferenceSystem', verbose_name='Spatial Reference System in database'),
+ ),
+ migrations.AlterField(
+ model_name='ishtarsiteprofile',
+ name='display_srs',
+ field=models.ForeignKey(blank=True, help_text='Spatial Reference System used for display when no SRS is defined', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='profile_display_srs', to='ishtar_common.SpatialReferenceSystem', verbose_name='Spatial Reference System for display'),
+ ),
+ migrations.AlterUniqueTogether(
+ name='geovectordata',
+ unique_together={('source_content_type', 'source_id', 'import_key')},
+ ),
+ ]