UCL-INGI / ICTV

ICTV is a simple content management system for digital signage on multiple screens.
Other
15 stars 5 forks source link

Update database.py #24

Closed Drumor closed 5 years ago

Drumor commented 5 years ago

Bad initial value.

31416r commented 5 years ago

For my information : what's the rationale behind this commit exactly ?

mpiraux commented 5 years ago

database_version tracks the current version of the code, not the version stored in the database and is used in the process of updating old databases.

31416r commented 5 years ago

so, if I understand well, this value is stored into the database and used to know what updates should be applied on the DB schema ?

mpiraux commented 5 years ago

Correct, see https://github.com/UCL-INGI/ICTV/blob/6d77f6a45e9dcaa6c84fab39eb9d7161b0a219b7/ictv/database.py#L104-L120