fix(db): track state of migrations and execute them again when necessary

Commit 2d71a4a132 pushed by prskrmain
Workflow test.yml

Run on Ubuntu

Failure

Set up job3s
Clone the code2s
Setup Go32s
Running Tests4m13s
Complete job10s