mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 15:46:07 -05:00
fix schema and primary key
* version is an additional primary key so we need to indicate that * schema no longer relies on Template model, and uses nested user
This commit is contained in:
@@ -249,7 +249,7 @@ class TemplateHistory(db.Model):
|
||||
subject = db.Column(db.Text)
|
||||
created_by_id = db.Column(UUID(as_uuid=True), db.ForeignKey('users.id'), index=True, nullable=False)
|
||||
created_by = db.relationship('User')
|
||||
version = db.Column(db.Integer)
|
||||
version = db.Column(db.Integer, primary_key=True)
|
||||
|
||||
|
||||
MMG_PROVIDER = "mmg"
|
||||
|
||||
Reference in New Issue
Block a user