Tags: xataio/pgroll
Tags
Add documentation for `create` subcommand (#820) This PR adds documentation for the new subcommand `create`. 
Add missing attributes to column info in virtual schema (#789) When a table was added, `pgroll` did not store all required column metadata. Default values and comments were missing from columns. So when `pgroll` tried to duplicate the column, these got lost. Example to reproduce the issue: ```json { "operations": [ { "create_table": { "name": "useres", "comment": "my_comment", "columns": [ { "name": "id", "type": "uuid", "pk": true, "nullable": false, "default": "gen_random_uuid()", "comment": "my_comment" } ] } }, { "create_constraint": { "table": "users", "columns": ["id"], "type": "unique", "name": "my_unique", "up": { "id": "id" }, "down": { "id": "id" } } } ] } ```
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>
Add missing options to duplicated FK constraints (#671) The new options in FK constraints (on update action, match type, etc.) were missing from the duplication process. Thus, the options set in the constraint disappeared after modifying columns with foreign key constraints.
Allow configuration of batch delay (#410) You can now configure a delay after each batch has completed. It can be configured in three ways: * The `--backfill-batch-delay` CLI parameter * The `PGROLL_BACKFILL_BATCH_DELAY` environment variable * The `roll.WithBackfillBatchDelay` functional option It defaults to 0 if not set and all values should be provided using the Go [duration format](https://pkg.go.dev/time#ParseDuration). Closes #168
PreviousNext