uptrace / bun

SQL-first Golang ORM
https://bun.uptrace.dev
BSD 2-Clause "Simplified" License
3.46k stars 206 forks source link

Go migrations are not discovered #979

Closed rrnair-98 closed 2 months ago

rrnair-98 commented 2 months ago

First things first great ORM. Thanks for making it. I just had a question as to why go based migrations are not part of the discovery process. Specifically Im asking about this line of code present on line 89 of the file migrate/migrations.go

!strings.HasSuffix(path, ".up.sql") && !strings.HasSuffix(path, ".down.sql")