added nullable false to prevent unexpected migration of this table

This commit is contained in:
Gulliver 2024-08-30 19:02:45 +02:00
parent 383ef8b512
commit 92f5393a4c
2 changed files with 2 additions and 2 deletions

View File

@ -27,5 +27,5 @@ repos:
name: reuse
entry: reuse lint
language: system
exclude: .*
exclude: ^(venv).*$
always_run: true

View File

@ -33,7 +33,7 @@ class Profile(db.Model):
volunteerwork = Column(String(4000), default="")
freetext = Column(String(4000), default="")
availability_status = Column(Boolean, default=False)
availability_status = Column(Boolean, default=False, nullable=False)
availability_text = Column(String(4000), default="")
availability_hours_per_week = Column(Integer, default=0)