CERT-Polska / mquery

YARA malware query accelerator (web frontend)
GNU Affero General Public License v3.0
413 stars 77 forks source link

Make fields nullable again #431

Closed msm-cert closed 2 weeks ago

msm-cert commented 2 weeks ago

After #412 the database status is not equivalent to schema in the code, and migrations want to change job_id fields to nullable. In that PR they were changed from a simple Field() to a Field(sa_column=...) which triggered this change.

This means that now trying to create a new migration will add two unrelated changes (job_id for jobagent and match).

This PR bumps sqlmodel and makes them non-nullable again.