mirror of
https://github.com/GSA/notifications-api.git
synced 2026-07-29 20:48:21 -04:00
Merge pull request #2591 from alphagov/remove-org-to-service-table
Remove the organisation_to_service table.
This commit is contained in:
@@ -70,7 +70,6 @@ def create_app(application):
|
||||
application.config.from_object(configs[notify_environment])
|
||||
|
||||
application.config['NOTIFY_APP_NAME'] = application.name
|
||||
|
||||
init_app(application)
|
||||
request_helper.init_app(application)
|
||||
db.init_app(application)
|
||||
|
||||
@@ -311,15 +311,6 @@ class ServicePermissionTypes(db.Model):
|
||||
name = db.Column(db.String(255), primary_key=True)
|
||||
|
||||
|
||||
organisation_to_service = db.Table(
|
||||
'organisation_to_service',
|
||||
db.Model.metadata,
|
||||
# service_id is a primary key as you can only have one organisation per service
|
||||
db.Column('service_id', UUID(as_uuid=True), db.ForeignKey('services.id'), primary_key=True, nullable=False),
|
||||
db.Column('organisation_id', UUID(as_uuid=True), db.ForeignKey('organisation.id'), nullable=False),
|
||||
)
|
||||
|
||||
|
||||
class Domain(db.Model):
|
||||
__tablename__ = "domain"
|
||||
domain = db.Column(db.String(255), primary_key=True)
|
||||
|
||||
Reference in New Issue
Block a user