Update EmailBranding.name to be not null and unique.

Needed to update old migration scripts so that the email_branding name is not null when creating the test dbs.
This should no affect the migrations elsewhere.
This commit is contained in:
Rebecca Law
2019-04-09 14:33:38 +01:00
parent 1ce044011c
commit 64428368d1
7 changed files with 58 additions and 16 deletions

View File

@@ -6,13 +6,13 @@ post_create_email_branding_schema = {
"type": "object",
"properties": {
"colour": {"type": ["string", "null"]},
"name": {"type": ["string", "null"]},
"name": {"type": "string"},
"text": {"type": ["string", "null"]},
"logo": {"type": ["string", "null"]},
"domain": {"type": ["string", "null"]},
"brand_type": {"enum": BRANDING_TYPES},
},
"required": []
"required": ["name"]
}
post_update_email_branding_schema = {