mirror of
https://github.com/GSA/notifications-api.git
synced 2026-06-30 12:15:23 -04:00
This is the second commit in the series to add organisation_id to Service. - Data migration to update services.organisation_id from data in organisation_to_service (The rollback will lose any updates to organisation unless the script is updated to set organistion_to_service from service.organisation_id ) - Update Service.organisation relationship to a ForeignKey relationship to Organisation. - Update Organisation.services to a backref relationship to Service.
Generic single-database configuration.
flask db migrate to generate migration script.
flask db upgrade to upgrade db with script.
flask db downgrade to rollback db changes.
flask db current to show current script.