From 97752834223e907c03285d5d7ad1606addb468f2 Mon Sep 17 00:00:00 2001 From: Andrey Rusakov Date: Fri, 20 Dec 2024 16:21:06 +0100 Subject: [PATCH] Add migrations --- ..._alter_orderitem_download_guid_and_more.py | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 api/migrations/0050_order_actualgeom_alter_orderitem_download_guid_and_more.py diff --git a/api/migrations/0050_order_actualgeom_alter_orderitem_download_guid_and_more.py b/api/migrations/0050_order_actualgeom_alter_orderitem_download_guid_and_more.py new file mode 100644 index 0000000..7a828ad --- /dev/null +++ b/api/migrations/0050_order_actualgeom_alter_orderitem_download_guid_and_more.py @@ -0,0 +1,37 @@ +# Generated by Django 5.1.3 on 2024-12-20 15:20 + +import django.contrib.gis.db.models.fields +import django.contrib.gis.geos.collections +import django.contrib.gis.geos.polygon +import django.db.models.deletion +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('api', '0049_orderitem_download_guid_alter_order_order_status_and_more'), + ('auth', '0012_alter_user_first_name_max_length'), + ] + + operations = [ + migrations.AddField( + model_name='order', + name='actualGeom', + field=django.contrib.gis.db.models.fields.PolygonField(null=True, srid=2056, verbose_name='actualGeom'), + ), + migrations.AlterField( + model_name='orderitem', + name='download_guid', + field=models.UUIDField(blank=True, null=True, unique=True, verbose_name='download_guid'), + ), + migrations.CreateModel( + name='ProductOwnership', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('geom', django.contrib.gis.db.models.fields.MultiPolygonField(default=django.contrib.gis.geos.collections.MultiPolygon(django.contrib.gis.geos.polygon.Polygon(((2828694.200665463, 1075126.8548189853), (2828694.200665463, 1299777.3195268118), (2484749.5514877755, 1299777.3195268118), (2484749.5514877755, 1075126.8548189853), (2828694.200665463, 1075126.8548189853)))), srid=2056, verbose_name='geom')), + ('product', models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='api.product', verbose_name='product')), + ('user_group', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='auth.group', verbose_name='user_group')), + ], + ), + ]