From 1ed113d8c07790c5ecc9c6da0098ee5cdd0414b1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Bedna=C5=99=C3=ADk?= <jan.bednarik@gmail.com>
Date: Tue, 26 Apr 2022 14:36:15 +0200
Subject: [PATCH] Fix migrations

---
 .../migrations/0057_merge_20220426_1342.py    |  13 ++
 .../migrations/0058_merge_20220426_1409.py    |  13 ++
 .../0059_alter_districtprogrampage_content.py | 159 ++++++++++++++++++
 region/migrations/0032_merge_20220426_1342.py |  13 ++
 region/migrations/0033_merge_20220426_1409.py |  13 ++
 .../0034_alter_regionprogrampage_content.py   | 159 ++++++++++++++++++
 6 files changed, 370 insertions(+)
 create mode 100644 district/migrations/0057_merge_20220426_1342.py
 create mode 100644 district/migrations/0058_merge_20220426_1409.py
 create mode 100644 district/migrations/0059_alter_districtprogrampage_content.py
 create mode 100644 region/migrations/0032_merge_20220426_1342.py
 create mode 100644 region/migrations/0033_merge_20220426_1409.py
 create mode 100644 region/migrations/0034_alter_regionprogrampage_content.py

diff --git a/district/migrations/0057_merge_20220426_1342.py b/district/migrations/0057_merge_20220426_1342.py
new file mode 100644
index 00000000..618cba99
--- /dev/null
+++ b/district/migrations/0057_merge_20220426_1342.py
@@ -0,0 +1,13 @@
+# Generated by Django 4.0.3 on 2022-04-26 11:42
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ("district", "0055_alter_districtcenterpage_content_and_more"),
+        ("district", "0056_alter_districtprogrampage_content"),
+    ]
+
+    operations = []
diff --git a/district/migrations/0058_merge_20220426_1409.py b/district/migrations/0058_merge_20220426_1409.py
new file mode 100644
index 00000000..c49c2f3f
--- /dev/null
+++ b/district/migrations/0058_merge_20220426_1409.py
@@ -0,0 +1,13 @@
+# Generated by Django 4.0.3 on 2022-04-26 12:09
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ("district", "0056_alter_districtcenterpage_sidebar_content_and_more"),
+        ("district", "0057_merge_20220426_1342"),
+    ]
+
+    operations = []
diff --git a/district/migrations/0059_alter_districtprogrampage_content.py b/district/migrations/0059_alter_districtprogrampage_content.py
new file mode 100644
index 00000000..e5b60f23
--- /dev/null
+++ b/district/migrations/0059_alter_districtprogrampage_content.py
@@ -0,0 +1,159 @@
+# Generated by Django 4.0.3 on 2022-04-26 12:09
+
+import wagtail.core.blocks
+import wagtail.core.fields
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ("district", "0058_merge_20220426_1409"),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name="districtprogrampage",
+            name="content",
+            field=wagtail.core.fields.StreamField(
+                [
+                    (
+                        "static_program_block",
+                        wagtail.core.blocks.StructBlock(
+                            [
+                                (
+                                    "headline",
+                                    wagtail.core.blocks.CharBlock(
+                                        label="Titulek bloku", required=True
+                                    ),
+                                ),
+                                (
+                                    "perex",
+                                    wagtail.core.blocks.TextBlock(
+                                        label="Krátký text pod nadpisem", required=True
+                                    ),
+                                ),
+                                (
+                                    "person",
+                                    wagtail.core.blocks.PageChooserBlock(
+                                        label="Garant",
+                                        page_type=["district.DistrictPersonPage"],
+                                    ),
+                                ),
+                                (
+                                    "completion_percentage",
+                                    wagtail.core.blocks.IntegerBlock(
+                                        label="Procento dokončení", required=True
+                                    ),
+                                ),
+                                (
+                                    "program_items",
+                                    wagtail.core.blocks.ListBlock(
+                                        wagtail.core.blocks.StructBlock(
+                                            [
+                                                (
+                                                    "title",
+                                                    wagtail.core.blocks.CharBlock(
+                                                        label="Název", required=True
+                                                    ),
+                                                ),
+                                                (
+                                                    "completion_percentage",
+                                                    wagtail.core.blocks.IntegerBlock(
+                                                        label="Procento dokončení",
+                                                        required=True,
+                                                    ),
+                                                ),
+                                                (
+                                                    "issue_link",
+                                                    wagtail.core.blocks.URLBlock(
+                                                        label="Odkaz na Redmine issue",
+                                                        required=False,
+                                                    ),
+                                                ),
+                                            ]
+                                        ),
+                                        label="Seznam bodů",
+                                    ),
+                                ),
+                            ]
+                        ),
+                    ),
+                    (
+                        "redmine_program_block",
+                        wagtail.core.blocks.StructBlock(
+                            [
+                                (
+                                    "headline",
+                                    wagtail.core.blocks.CharBlock(
+                                        label="Titulek bloku", required=True
+                                    ),
+                                ),
+                                (
+                                    "perex",
+                                    wagtail.core.blocks.TextBlock(
+                                        label="Krátký text pod nadpisem", required=True
+                                    ),
+                                ),
+                                (
+                                    "person",
+                                    wagtail.core.blocks.PageChooserBlock(
+                                        label="Garant",
+                                        page_type=["district.DistrictPersonPage"],
+                                    ),
+                                ),
+                                (
+                                    "redmine_issue",
+                                    wagtail.core.blocks.IntegerBlock(
+                                        label="Číslo Redmine issue", required=True
+                                    ),
+                                ),
+                                (
+                                    "completion_percentage",
+                                    wagtail.core.blocks.IntegerBlock(
+                                        help_text="Hodnota se automaticky načte s Redmine",
+                                        label="Procento dokončení - bude doplněno automaticky",
+                                        required=False,
+                                    ),
+                                ),
+                                (
+                                    "program_items",
+                                    wagtail.core.blocks.ListBlock(
+                                        wagtail.core.blocks.StructBlock(
+                                            [
+                                                (
+                                                    "title",
+                                                    wagtail.core.blocks.CharBlock(
+                                                        label="Název", required=True
+                                                    ),
+                                                ),
+                                                (
+                                                    "completion_percentage",
+                                                    wagtail.core.blocks.IntegerBlock(
+                                                        label="Procento dokončení",
+                                                        required=True,
+                                                    ),
+                                                ),
+                                                (
+                                                    "issue_link",
+                                                    wagtail.core.blocks.URLBlock(
+                                                        label="Odkaz na Redmine issue",
+                                                        required=False,
+                                                    ),
+                                                ),
+                                            ]
+                                        ),
+                                        help_text="Hodnota se automaticky načte s Redmine",
+                                        label="Seznam bodů - bude doplněno automaticky",
+                                        required=False,
+                                    ),
+                                ),
+                            ]
+                        ),
+                    ),
+                ],
+                blank=True,
+                verbose_name="obsah stránky",
+            ),
+        ),
+    ]
diff --git a/region/migrations/0032_merge_20220426_1342.py b/region/migrations/0032_merge_20220426_1342.py
new file mode 100644
index 00000000..306f7f29
--- /dev/null
+++ b/region/migrations/0032_merge_20220426_1342.py
@@ -0,0 +1,13 @@
+# Generated by Django 4.0.3 on 2022-04-26 11:42
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ("region", "0030_alter_regioncenterpage_content_and_more"),
+        ("region", "0031_alter_regionprogrampage_content"),
+    ]
+
+    operations = []
diff --git a/region/migrations/0033_merge_20220426_1409.py b/region/migrations/0033_merge_20220426_1409.py
new file mode 100644
index 00000000..89abb226
--- /dev/null
+++ b/region/migrations/0033_merge_20220426_1409.py
@@ -0,0 +1,13 @@
+# Generated by Django 4.0.3 on 2022-04-26 12:09
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ("region", "0031_alter_regioncenterpage_sidebar_content"),
+        ("region", "0032_merge_20220426_1342"),
+    ]
+
+    operations = []
diff --git a/region/migrations/0034_alter_regionprogrampage_content.py b/region/migrations/0034_alter_regionprogrampage_content.py
new file mode 100644
index 00000000..4088d593
--- /dev/null
+++ b/region/migrations/0034_alter_regionprogrampage_content.py
@@ -0,0 +1,159 @@
+# Generated by Django 4.0.3 on 2022-04-26 12:09
+
+import wagtail.core.blocks
+import wagtail.core.fields
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ("region", "0033_merge_20220426_1409"),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name="regionprogrampage",
+            name="content",
+            field=wagtail.core.fields.StreamField(
+                [
+                    (
+                        "static_program_block",
+                        wagtail.core.blocks.StructBlock(
+                            [
+                                (
+                                    "headline",
+                                    wagtail.core.blocks.CharBlock(
+                                        label="Titulek bloku", required=True
+                                    ),
+                                ),
+                                (
+                                    "perex",
+                                    wagtail.core.blocks.TextBlock(
+                                        label="Krátký text pod nadpisem", required=True
+                                    ),
+                                ),
+                                (
+                                    "person",
+                                    wagtail.core.blocks.PageChooserBlock(
+                                        label="Garant",
+                                        page_type=["region.RegionPersonPage"],
+                                    ),
+                                ),
+                                (
+                                    "completion_percentage",
+                                    wagtail.core.blocks.IntegerBlock(
+                                        label="Procento dokončení", required=True
+                                    ),
+                                ),
+                                (
+                                    "program_items",
+                                    wagtail.core.blocks.ListBlock(
+                                        wagtail.core.blocks.StructBlock(
+                                            [
+                                                (
+                                                    "title",
+                                                    wagtail.core.blocks.CharBlock(
+                                                        label="Název", required=True
+                                                    ),
+                                                ),
+                                                (
+                                                    "completion_percentage",
+                                                    wagtail.core.blocks.IntegerBlock(
+                                                        label="Procento dokončení",
+                                                        required=True,
+                                                    ),
+                                                ),
+                                                (
+                                                    "issue_link",
+                                                    wagtail.core.blocks.URLBlock(
+                                                        label="Odkaz na Redmine issue",
+                                                        required=False,
+                                                    ),
+                                                ),
+                                            ]
+                                        ),
+                                        label="Seznam bodů",
+                                    ),
+                                ),
+                            ]
+                        ),
+                    ),
+                    (
+                        "redmine_program_block",
+                        wagtail.core.blocks.StructBlock(
+                            [
+                                (
+                                    "headline",
+                                    wagtail.core.blocks.CharBlock(
+                                        label="Titulek bloku", required=True
+                                    ),
+                                ),
+                                (
+                                    "perex",
+                                    wagtail.core.blocks.TextBlock(
+                                        label="Krátký text pod nadpisem", required=True
+                                    ),
+                                ),
+                                (
+                                    "person",
+                                    wagtail.core.blocks.PageChooserBlock(
+                                        label="Garant",
+                                        page_type=["region.RegionPersonPage"],
+                                    ),
+                                ),
+                                (
+                                    "redmine_issue",
+                                    wagtail.core.blocks.IntegerBlock(
+                                        label="Číslo Redmine issue", required=True
+                                    ),
+                                ),
+                                (
+                                    "completion_percentage",
+                                    wagtail.core.blocks.IntegerBlock(
+                                        help_text="Hodnota se automaticky načte s Redmine",
+                                        label="Procento dokončení - bude doplněno automaticky",
+                                        required=False,
+                                    ),
+                                ),
+                                (
+                                    "program_items",
+                                    wagtail.core.blocks.ListBlock(
+                                        wagtail.core.blocks.StructBlock(
+                                            [
+                                                (
+                                                    "title",
+                                                    wagtail.core.blocks.CharBlock(
+                                                        label="Název", required=True
+                                                    ),
+                                                ),
+                                                (
+                                                    "completion_percentage",
+                                                    wagtail.core.blocks.IntegerBlock(
+                                                        label="Procento dokončení",
+                                                        required=True,
+                                                    ),
+                                                ),
+                                                (
+                                                    "issue_link",
+                                                    wagtail.core.blocks.URLBlock(
+                                                        label="Odkaz na Redmine issue",
+                                                        required=False,
+                                                    ),
+                                                ),
+                                            ]
+                                        ),
+                                        help_text="Hodnota se automaticky načte s Redmine",
+                                        label="Seznam bodů - bude doplněno automaticky",
+                                        required=False,
+                                    ),
+                                ),
+                            ]
+                        ),
+                    ),
+                ],
+                blank=True,
+                verbose_name="obsah stránky",
+            ),
+        ),
+    ]
-- 
GitLab