Add User.full_mailbox col
This commit is contained in:
parent
773e24dd9a
commit
f662adf237
|
@ -137,6 +137,14 @@ class User(db.Model, ModelMixin, UserMixin):
|
||||||
db.Boolean, default=False, nullable=False, server_default="0"
|
db.Boolean, default=False, nullable=False, server_default="0"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# only use mailbox instead of default to user email
|
||||||
|
# this requires a migration before to:
|
||||||
|
# 1. create default mailbox for the user email address
|
||||||
|
# 2. assign existing aliases to this default mailbox
|
||||||
|
full_mailbox = db.Column(
|
||||||
|
db.Boolean, default=False, nullable=False, server_default="0"
|
||||||
|
)
|
||||||
|
|
||||||
profile_picture = db.relationship(File)
|
profile_picture = db.relationship(File)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
Loading…
Reference in a new issue