postgres-shift icon indicating copy to clipboard operation
postgres-shift copied to clipboard

Allow file migrations, avoiding the creation of intermediate folders

Open jopicornell opened this issue 6 months ago • 1 comments

I love the simplicity and the idea of this plugin, but one thing I didn't like is the obligation to use folders and inside an index.(sql|js) file, which isn't a big deal, but seems like it would be much comfortable to do it like this:

|- migrations
|-- 00001_create.sql
|-- 00002_update.js
|-- 00003_delete.sql

Obviously, this should be retrocompatible with existing migrations.

I've been experimenting with the code and it is an easy fix. When I have it done I'll open a PR in case it is welcome as a feature.

jopicornell avatar Aug 20 '24 08:08 jopicornell