Skip to content

Commit

Permalink
Null=trues back
Browse files Browse the repository at this point in the history
  • Loading branch information
JJFlorian committed Mar 15, 2024
1 parent 5f43269 commit f18dd3f
Show file tree
Hide file tree
Showing 7 changed files with 404 additions and 61 deletions.
26 changes: 26 additions & 0 deletions api/migrations/0022_alter_uploadtask_registration_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Generated by Django 5.0.1 on 2024-03-14 19:13

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("api", "0021_remove_userprofile_default_project_number_and_more"),
]

operations = [
migrations.AlterField(
model_name="uploadtask",
name="registration_type",
field=models.CharField(
choices=[
("GMN_StartRegistration", "GMN_StartRegistration"),
("GMN_MeasuringPoint", "GMN_MeasuringPoint"),
("GMN_MeasuringPointEndDate", "GMN_MeasuringPointEndDate"),
("GMN_TubeReference", "GMN_TubeReference"),
("GMN_Closure", "GMN_Closure"),
],
max_length=235,
),
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# Generated by Django 5.0.1 on 2024-03-14 19:39

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("gmn", "0014_alter_gmn_data_owner_and_more"),
]

operations = [
migrations.AlterField(
model_name="gmn",
name="delivery_accountable_party",
field=models.CharField(max_length=8, null=True),
),
migrations.AlterField(
model_name="gmn",
name="delivery_context",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="gmn",
name="groundwater_aspect",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="gmn",
name="monitoring_purpose",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="gmn",
name="name",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="gmn",
name="object_registration_time",
field=models.DateTimeField(null=True),
),
migrations.AlterField(
model_name="gmn",
name="quality_regime",
field=models.CharField(max_length=50, null=True),
),
migrations.AlterField(
model_name="gmn",
name="registration_status",
field=models.CharField(max_length=50, null=True),
),
migrations.AlterField(
model_name="gmn",
name="start_date_monitoring",
field=models.DateField(null=True),
),
migrations.AlterField(
model_name="measuringpoint",
name="gmw_bro_id",
field=models.CharField(max_length=50, null=True),
),
migrations.AlterField(
model_name="measuringpoint",
name="measuringpoint_code",
field=models.CharField(max_length=50, null=True),
),
migrations.AlterField(
model_name="measuringpoint",
name="measuringpoint_start_date",
field=models.DateField(null=True),
),
migrations.AlterField(
model_name="measuringpoint",
name="tube_number",
field=models.CharField(max_length=50, null=True),
),
migrations.AlterField(
model_name="measuringpoint",
name="tube_start_date",
field=models.DateField(null=True),
),
]
28 changes: 14 additions & 14 deletions gmn/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ class GMN(models.Model):
updated_at = models.DateTimeField(auto_now=True)
data_owner = models.ForeignKey(Organisation, on_delete=models.CASCADE)
bro_id = models.CharField(max_length=18)
delivery_accountable_party = models.CharField(max_length=8)
quality_regime = models.CharField(max_length=50)
name = models.CharField(max_length=100)
delivery_context = models.CharField(max_length=100)
monitoring_purpose = models.CharField(max_length=100)
groundwater_aspect = models.CharField(max_length=100)
start_date_monitoring = models.DateField()
object_registration_time = models.DateTimeField()
registration_status = models.CharField(max_length=50)
delivery_accountable_party = models.CharField(max_length=8, null=True)
quality_regime = models.CharField(max_length=50, null=True)
name = models.CharField(max_length=100, null=True)
delivery_context = models.CharField(max_length=100, null=True)
monitoring_purpose = models.CharField(max_length=100, null=True)
groundwater_aspect = models.CharField(max_length=100, null=True)
start_date_monitoring = models.DateField(null=True)
object_registration_time = models.DateTimeField(null=True)
registration_status = models.CharField(max_length=50, null=True)

def __str__(self):
return self.bro_id
Expand All @@ -46,11 +46,11 @@ class Measuringpoint(models.Model):
updated_at = models.DateTimeField(auto_now=True)
data_owner = models.ForeignKey(Organisation, on_delete=models.CASCADE)
gmn = models.ForeignKey(GMN, on_delete=models.CASCADE)
measuringpoint_code = models.CharField(max_length=50)
measuringpoint_start_date = models.DateField()
gmw_bro_id = models.CharField(max_length=50)
tube_number = models.CharField(max_length=50)
tube_start_date = models.DateField()
measuringpoint_code = models.CharField(max_length=50, null=True)
measuringpoint_start_date = models.DateField(null=True)
gmw_bro_id = models.CharField(max_length=50, null=True)
tube_number = models.CharField(max_length=50, null=True)
tube_start_date = models.DateField(null=True)

def __str__(self):
return self.measuringpoint_code
17 changes: 17 additions & 0 deletions gmw/migrations/0008_alter_monitoringtube_tube_top_diameter.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 5.0.1 on 2024-03-14 19:13

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("gmw", "0007_alter_gmw_construction_standard_alter_gmw_data_owner_and_more"),
]

operations = [
migrations.AlterField(
model_name="monitoringtube",
name="tube_top_diameter",
field=models.CharField(max_length=100, null=True),
),
]
17 changes: 17 additions & 0 deletions gmw/migrations/0009_alter_gmw_well_stability.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 5.0.1 on 2024-03-14 19:22

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("gmw", "0008_alter_monitoringtube_tube_top_diameter"),
]

operations = [
migrations.AlterField(
model_name="gmw",
name="well_stability",
field=models.CharField(max_length=100, null=True),
),
]
207 changes: 207 additions & 0 deletions gmw/migrations/0010_alter_gmw_construction_standard_and_more.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,207 @@
# Generated by Django 5.0.1 on 2024-03-14 19:39

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("gmw", "0009_alter_gmw_well_stability"),
]

operations = [
migrations.AlterField(
model_name="gmw",
name="construction_standard",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="gmw",
name="delivered_location",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="gmw",
name="delivery_accountable_party",
field=models.CharField(max_length=8, null=True),
),
migrations.AlterField(
model_name="gmw",
name="delivery_context",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="gmw",
name="ground_level_position",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="gmw",
name="ground_level_positioning_method",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="gmw",
name="ground_level_stable",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="gmw",
name="initial_function",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="gmw",
name="local_vertical_reference_point",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="gmw",
name="nitg_code",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="gmw",
name="object_registration_time",
field=models.DateTimeField(null=True),
),
migrations.AlterField(
model_name="gmw",
name="offset",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="gmw",
name="owner",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="gmw",
name="quality_regime",
field=models.CharField(max_length=50, null=True),
),
migrations.AlterField(
model_name="gmw",
name="registration_status",
field=models.CharField(max_length=50, null=True),
),
migrations.AlterField(
model_name="gmw",
name="removed",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="gmw",
name="standardized_location",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="gmw",
name="vertical_datum",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="gmw",
name="well_code",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="gmw",
name="well_head_protector",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="monitoringtube",
name="artesian_well_cap_present",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="monitoringtube",
name="glue",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="monitoringtube",
name="number_of_geo_ohm_cables",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="monitoringtube",
name="plain_tube_part_length",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="monitoringtube",
name="screen_bottom_position",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="monitoringtube",
name="screen_length",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="monitoringtube",
name="screen_top_position",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="monitoringtube",
name="sediment_sump_present",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="monitoringtube",
name="sock_material",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="monitoringtube",
name="tube_in_use",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="monitoringtube",
name="tube_material",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="monitoringtube",
name="tube_number",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="monitoringtube",
name="tube_packing_material",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="monitoringtube",
name="tube_part_inserted",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="monitoringtube",
name="tube_status",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="monitoringtube",
name="tube_top_position",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="monitoringtube",
name="tube_top_positioning_method",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="monitoringtube",
name="tube_type",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name="monitoringtube",
name="variable_diameter",
field=models.CharField(max_length=100, null=True),
),
]
Loading

0 comments on commit f18dd3f

Please sign in to comment.