From 92f5393a4c7dea097322a95d6761be9b311273c0 Mon Sep 17 00:00:00 2001 From: Gulliver Date: Fri, 30 Aug 2024 19:02:45 +0200 Subject: [PATCH] added nullable false to prevent unexpected migration of this table --- .pre-commit-config.yaml | 2 +- ki/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 529438e..a74a454 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,5 +27,5 @@ repos: name: reuse entry: reuse lint language: system - exclude: .* + exclude: ^(venv).*$ always_run: true diff --git a/ki/models.py b/ki/models.py index 65961a1..2b78912 100644 --- a/ki/models.py +++ b/ki/models.py @@ -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)