You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pg-mem supports migrations with node-pg-migrate format numbering format since the file prefix is sequential.
If you store the migrations in a /migrations folder in the root of your project you can just call. await db.public.migrate();
Or specify the path with migrationsPath, i.e await db.public.migrate({ migrationsPath: Path.resolve(__dirname, '../../migrations') });
If I understand @ambita-hme's comment correctly, this is a (workaround) solution.
I think there is no error with using pg-mem or a real postgres docker container node-pg-migrate just generates the SQL statements and sends them via pg-connection to the DB instance
Hello, I was thinking to run my migrations with pg-mem to my Postgres database.
Is there a way for me to do that?
The text was updated successfully, but these errors were encountered: