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
I am trying to generate a file with SQL queries containing the current PostgreSQL schema diff for a PR, based on our own homegrown SQL-in-JS schemas.
With the --from-schema-datamodel and --to-schema-datamodel options (or similar options with other names), I imagine I could run drizzle-kit generate as follows in CI to autogenerate the migrations:
drizzle-kit generate --from-schema-datamodel main-schema.ts --to-schema-datamodel feature-schema.ts
# then commit to Git in the CI step
The text was updated successfully, but these errors were encountered:
Similar to
prisma migrate diff
, allow for passing schema file paths as the "from" and "to" when generating migrations:--from-schema-datamodel
--to-schema-datamodel
This would allow for richer migrations generation workflows, as in the
prisma migrate
workflows docs.My own use case is not mentioned on that link:
I am trying to generate a file with SQL queries containing the current PostgreSQL schema diff for a PR, based on our own homegrown SQL-in-JS schemas.
With the
--from-schema-datamodel
and--to-schema-datamodel
options (or similar options with other names), I imagine I could rundrizzle-kit generate
as follows in CI to autogenerate the migrations:drizzle-kit generate --from-schema-datamodel main-schema.ts --to-schema-datamodel feature-schema.ts # then commit to Git in the CI step
The text was updated successfully, but these errors were encountered: