#Are there any postgres migration libs that work on pages?
9 messages · Page 1 of 1 (latest)
do you have node compat enabled
alternative ways:
- manually run migrations
- run migrations in CI
Yes, I have the nodejs_compat flag in the pages settings. Currently I just manually run the migrations through the connection string with my client. Exploring alternative migration tools that could hopefully automate this though.
ohh, I know why when I think about it
workers are just one .js file, and run in a context without a filesystem
so no fs api is integrated (other than workers sites/adding them at build time)
I'd go with a ci pipeline that runs them
for me, doing it manually isn't that big of a chore — you only need migrations when you change the schema