Resolve "Studies frontend for creation and edition"
Closes #165 (closed)
I have divided the study information into four field as requested. I change the database to store the update values in the table studies.
Rapports de requête de fusion
Activité
changed milestone to %0.4: Tests and studies improvements
added Breaking changes label
- Résolue par Delphine van Rossum
Thank you for your fast work on this!
Could you write the alembic update script? You can refer to CONTRIBUTING.md
Modifié par Brieuc Dubois
mentioned in commit 9ea44d10
On the dev server, the upgrade failed with this error:
Cannot add a NOT NULL column with default value NULL
, as their is already existing studies. I will document it further, but for newNOT NULL
columns, we must provide a value for the current rows. You can check the previous alembic script if you want an example, but basically, you have to a provide aserver_default
. If the column doesn't have a default value once in production, you can alter the column right after, doingop.alter_column("my_column", server_default=None)
(check the previous script again if you want to see it in practice). If you could open a new PR to fix this (you can only edit your previous script, I will rebasedev
on serv)Modifié par Brieuc Dubois