docker-powerdns icon indicating copy to clipboard operation
docker-powerdns copied to clipboard

feat: Handle auto DB upgrade

Open madmath03 opened this issue 5 years ago • 2 comments

feat: Handle auto DB upgrade to fix #45

Signed-off-by: mathieu.brunot [email protected]

madmath03 avatar May 27 '20 18:05 madmath03

The schema version should be stored along with the database, so the best way to do it is to store it into a custom table. This table can also be used to lock the database during schema update. There are several tools that does exactly this way (liquibase, flyway, sqlalchemie-migrate, ...).

micw avatar Jun 03 '20 19:06 micw

True... but this would be an evolution in PowerDNS itself, so not really in the scope of this docker container :sweat_smile:

madmath03 avatar Jun 15 '20 23:06 madmath03