mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-24 09:21:39 -05:00
With the changes we will be making to email branding in admin it's useful to know the ID of the NHS email brand. This makes it easier to show a preview of the branding. This means that the ID will need to be consistent across environments, so this changes the details of the NHS brand in the dev, preview and staging environments to match the production data. The migration - Removes NHS branding from existing services - Removes NHS branding from any orgs which had it as their default - Deletes the NHS branding row if it exists - Inserts a new NHS branding row with details which match those in production This does have the effect of removing NHS branding from people's local and preview services and orgs (NHS branding doesn't exist on staging), but this does not affect real teams. The NHS logo with a filename of '1ac6f483-3105-4c9e-9017-dd7fb2752c44-nhs-blue_x2.png' exists in the logo S3 bucket for all environments.
See https://flask-alembic.readthedocs.io/en/stable/.
You can run flask db for a list of the available commands.
Note that we manually rename the auto-generated files so the prefix is a sequential number instead of a SHA. This means the files are listed in order, so it's easier to navigate the migration history.