fukamachi / mito

An ORM for Common Lisp with migrations, relationships and PostgreSQL support
292 stars 31 forks source link

Record all existing migration versions on the first table creation. #112

Closed fukamachi closed 2 years ago

fukamachi commented 2 years ago

When creating the DB, the latest schema version was recorded until now. New migration files created thereafter are applied sequentially.

However, it may confuse when another branch has "older" migration files, which won't be applied.

This patch fixes the problem by recording all existing schema versions on the first DB creation.