phoenixlan / phoenixapi-v1

Python-based api server for a self-hosted event hosting system
GNU General Public License v3.0
2 stars 0 forks source link

Agenda table currently broken due to created_by_user not being nullable #34

Open petterroea opened 11 months ago

petterroea commented 11 months ago

Yeah so @HenrikEngen 's PR #22 adds a column called created_by_user_uuid that is not nullable. Since we have existing fields, this causes issues.

Find a solution and make a fix. I can help if you don't know how to implement the solution, but at least suggest what the best "default" value should be.

HenrikEngen commented 11 months ago

Thats unfortunate. We can ofcourse allow null in both created_by_user_uuid and created_by_user_time in the model to prevent this issue. I was also thinking of suggesting a "System account" as an uuid to fix all previous agenda entries, but I think the best would be to just allow null in the columns.