-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4491 from open-formulieren/release/4486-squash-mi…
…grations Squash migrations for the 2.7 release
- Loading branch information
Showing
42 changed files
with
1,206 additions
and
1,759 deletions.
There are no files selected for viewing
85 changes: 85 additions & 0 deletions
85
src/openforms/appointments/contrib/qmatic/migrations/0001_initial_to_v270.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
# Generated by Django 4.2.11 on 2024-07-04 14:21 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
import django_jsonform.models.fields | ||
|
||
import openforms.appointments.contrib.qmatic.models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
replaces = [ | ||
("qmatic", "0001_initial"), | ||
("qmatic", "0002_qmaticconfig_required_customer_fields"), | ||
("qmatic", "0003_strip_qmatic_service_v1"), | ||
] | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
("zgw_consumers", "0012_auto_20210104_1039"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="QmaticConfig", | ||
fields=[ | ||
( | ||
"id", | ||
models.AutoField( | ||
auto_created=True, | ||
primary_key=True, | ||
serialize=False, | ||
verbose_name="ID", | ||
), | ||
), | ||
( | ||
"service", | ||
models.OneToOneField( | ||
help_text="The Qmatic Orchestra Calendar Public Appointment API service. Example: https://example.com:8443/calendar-backend/public/api/v1/", | ||
limit_choices_to={"api_type": "orc"}, | ||
null=True, | ||
on_delete=django.db.models.deletion.PROTECT, | ||
related_name="+", | ||
to="zgw_consumers.service", | ||
verbose_name="Calendar API", | ||
), | ||
), | ||
( | ||
"required_customer_fields", | ||
django_jsonform.models.fields.ArrayField( | ||
base_field=models.CharField( | ||
choices=[ | ||
("firstName", "First name"), | ||
("lastName", "Last name"), | ||
("email", "Email address"), | ||
("phone", "Phone number"), | ||
("addressLine1", "Street name and number"), | ||
("addressLine2", "Address line 2"), | ||
("addressCity", "City"), | ||
("addressState", "State"), | ||
("addressZip", "Postal code"), | ||
("addressCountry", "Country"), | ||
("identificationNumber", "Identification number"), | ||
( | ||
"externalId", | ||
"Unique customer identification/account number", | ||
), | ||
("dateOfBirth", "Birthday"), | ||
], | ||
max_length=50, | ||
), | ||
default=openforms.appointments.contrib.qmatic.models.get_default_customer_fields, | ||
help_text="Select the customer fields for the contact details step. Fields that you select here are REQUIRED fields for the user making the appointment. You must have at least one field to be able to identify the customer.", | ||
size=None, | ||
verbose_name="Required customer fields", | ||
), | ||
), | ||
], | ||
options={ | ||
"verbose_name": "Qmatic configuration", | ||
}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 0 additions & 57 deletions
57
src/openforms/appointments/contrib/qmatic/tests/test_migrations.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.