Custom query at the end of migrations

So for some context, i use Durable objects which require me to run the migrate function alot. most of the time this will be skipped because the db has not changed so its not an issue. But i was wondering what would be a good way of running a pragma optimize at the end? i only want to run this IF there has been changes aka if the migrations arent skipped. Simple way is obviously manually adding that query in the last migration file but i was wondering if there is another way of doing this? the migrate function sadly dosent return a result that says if migrations ran or were skipped
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?