Add and populate crown column to services and services_history

- Added the boolean 'crown' column to services and services_history tables
- We populate this column in the same migration script by checking the
'organisation_type' of a service
This commit is contained in:
Katie Smith
2017-12-04 13:24:53 +00:00
parent 3ba7e8abd9
commit f73319f5ef
4 changed files with 46 additions and 0 deletions

View File

@@ -249,6 +249,7 @@ class Service(db.Model, Versioned):
db.String(255),
nullable=True,
)
crown = db.Column(db.Boolean, index=False, nullable=False, default=True)
association_proxy('permissions', 'service_permission_types')