Potential issue with multiple releases of Pepys in use #787
Replies: 3 comments
-
Hopefully it won't cause any issues, but I think @BarisSari is the expert in Alembic/SQLAlchemy. There's a possibility it might raise an error if it finds the database doesn't match the defined schema - I don't know if it would raise an error if the nullability or length was different. (This will definitely be a problem when we release #783, as I know a difference in field name will cause an error). What do you think @BarisSari? |
Beta Was this translation helpful? Give feedback.
-
Hello @IanMayo, and @robintw. I think the Tasks table is still not used. So, I don't think nullability will cause an error. Actually, it was not possible to create an entity before this migration. I think it also shows that the table is empty :) We increased |
Beta Was this translation helpful? Give feedback.
-
Great - thanks Guys. |
Beta Was this translation helpful? Give feedback.
-
Hello @robintw & @BarisSari ,
I've about to send a new Beta into the clients, for them to test the new elements of Releases 2 and 3.
My plan is to get them to unpack the distribution into a dated folder. I'll then ask the Admin to run
install_pepys.bat
, then open Pepys Admin and run the database migration.The current Pepys and this Beta version are looking at the same Postgres instance - but the migration may mean the database isn't now in the state that the non-Beta version expects.
The "current" version they have is 2021/01/15. Looking at the Alembic migrations, I don't think the two since then would cause any issues:
Beta Was this translation helpful? Give feedback.
All reactions