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
Publish convert command and add new documentation page (#700)
This PR publishes the new subcommand `convert`, and adds a new
documentation page.
This must be merged before the v0.10.0 release.
---------
Co-authored-by: Andrew Farries <andyrb@gmail.com>
This reads the SQL statements from `/path/to/migration.sql` and translates them into a `pgroll` migration. The name of the migration will be `01_create_first_table`.
13
+
14
+
### Read SQL statements from stdin
15
+
16
+
If a file name is not specified `pgroll convert` reads the SQL statements from stdin.
The generated pgroll migrations might include `up` and `down` migrations. Those must be filled in manually because currently `pgroll` is unable to infer correct up and down migrations.
0 commit comments