mirror of
https://github.com/simple-login/app.git
synced 2024-11-13 07:31:12 +01:00
Fix: sqlalchemy only suports str as server_default
This commit is contained in:
parent
e62022f032
commit
baddc0fe67
1 changed files with 1 additions and 1 deletions
|
@ -3023,7 +3023,7 @@ class ProviderComplaint(Base, ModelMixin):
|
|||
|
||||
user_id = sa.Column(sa.ForeignKey("users.id"), nullable=False)
|
||||
state = sa.Column(sa.Integer, nullable=False)
|
||||
phase = sa.Column(sa.Integer, nullable=False, server_default=Phase.unknown.value)
|
||||
phase = sa.Column(sa.Integer, nullable=False, server_default=str(Phase.unknown.value))
|
||||
# Point to the email that has been refused
|
||||
refused_email_id = sa.Column(
|
||||
sa.ForeignKey("refused_email.id", ondelete="cascade"), nullable=True
|
||||
|
|
Loading…
Reference in a new issue