exlibris-fed / exlibris

MIT License
4 stars 0 forks source link

Database is recreated on every build #38

Closed Sigafoos closed 4 years ago

Sigafoos commented 4 years ago

Right now something is going on where the db volume isn't being persisted.

To reproduce

  1. Start a container (make dev)
  2. Insert some data (ie register a user)
  3. Stop the container (^C)
  4. Start the container
  5. See that the database is empty

This could be related to the GORM migration but I think it's unlikely, as GORM seems to refuse to do some migration actions (like attempt to change column types) in the name of preserving your data.