v0.14.0
⚡ Highlights
✅ Validate migrations before execution with the new pgroll validate command
⚙️ Auto update migration files with the new pgroll update command
📁 Get the connection string for the most recent version schema with the newpgroll latest url command
📛 Specify version schema names with the version_schema field or run without them with the --use-version-schema flag
Read the release blog post for more details: https://pgroll.com/blog/pgroll-0-14-0-update
Changelog
- 63a8f4b Add
--yesflag topgroll baseline(#865) - 050e2ea Add
VersionSchemafield to operation integration tests (#886) - a90b587 Add
pgroll latest urlcommand (#927) - 1fb32c8 Add a global
--use-version-schemaflag to thepgrollCLI (#919) - a7c4bb5 Add coverage job again (#868)
- 6c32984 Add coverage report to pull requests (#864)
- 5cbaa73 Add documentation for the
pgroll latest urlcommand (#928) - 063a244 Add more details to
updatesubcommand page (#877) - fe34c2c Add new
DBActionto add columns to existing tables (#894) - 934a20e Add new
DBActionto rename tables (#893) - f672053 Add new
DBAction:RenameDuplicatedColumnAction(#883) - b533a14 Add new
DBActionsfor setting and dropping default values (#892) - c3fddb3 Add new subcommand to update migrations that contain breaking changes (#855)
- f8bf96f Add new subcommand to validate migration files (#856)
- ebd41aa Add tests for
SchemaAfterMigrationmethod (#926) - 5b3c948 Add trigger configuration to
backfill.Task(#931) - 1dd00ff Allow migration files to specify a
versionSchemafield (#884) - 899645a Always remove version schema on rollback and complete (#920)
- 68b779b Bump
golangci-linttov2(#904) - 531a919 Bump github.com/go-viper/mapstructure/v2 from 2.2.1 to 2.3.0 (#941)
- 25fe03e Bump github.com/pterm/pterm from 0.12.80 to 0.12.81 (#870)
- 21589af Bump github.com/santhosh-tekuri/jsonschema/v6 from 6.0.1 to 6.0.2 (#857)
- f028dc3 Bump golang.org/x/tools from 0.33.0 to 0.34.0 (#871)
- 914582b Bump sigs.k8s.io/yaml from 1.4.0 to 1.5.0 (#942)
- 92bb10a Combine the return values of
Startinto a single data class (#945) - aac8b31 Comment out coverage check, so we get a baseline (#867)
- 542166f Construct version schema name in
Roll.StartDDLOperationswithout DB lookup (#912) - 07d8d08 Ensure lex ordering of inferred migration names with respect to
pgrollmigrations (#899) - 146d740 Ignore all DDL executed by
pgroll(#890) - 192f4eb Keep
pgrollstate schema in sync withpgrollbinary version (#876) - 589bc33 Make
pgroll latest schemaignore migrations for which no version schema exists (#916) - 31dd8d1 Move
Statusmethod torollpackage (#921) - b6c7a94 Move
TriggerConfigtobackfillpackage (#923) - 22d7cc2 New
DBActionfor adding unique constraints using indices (#897) - 535abb3 New
DBActionfor creating index concurrently (#939) - e01a51f New
DBActionfor setting replica identity (#938) - d2a1212 New
DBActionto create primary key constraint from index (#901) - 711b4d4 New
DBActionto run raw SQL statements (#898) - 44e4e00 New
DBAction:SetNotNullAction(#878) - 0ac2095 Remove
Ensure JSON examples are formattedCI step (#873) - a75c3f6 Remove
State.LastSchemamethod (#909) - e7786f5 Remove
WithNoVersionSchemaForRawSQLopton (#903) - 2150959 Remove
examples-schema-validationCI build step (#874) - 1fe1af8 Remove redundant check from
MissingMigrationsmethod (#911) - 7f44302 Remove redundant check from
UnappliedMigrationsmethod (#869) - 716f47f Remove redundant parameter from
previous_migrationfunction (#914) - 6dfeb32 Remove unnecessary param from
Startfunction (#934) - 3532502 Rename
WithDisableViewsManagementroll option (#917) - c3c73e4 Rename
pgroll.internalGUC topgroll.no_inferred_migrations(#932) - d7f2f61 Return
DBActionsfromComplete(#902) - 12dd5a2 Return
DBActionsfromRollback(#929) - b117582 Return
backfill.TaskfromStartphase operations (#924) - 470b5ef Return list of
DBActionfromStart(#944) - d8ce04e Revert "Bump github.com/pterm/pterm from 0.12.80 to 0.12.81 (#870)" (#875)
- 2293fdd Set default values for columns in new schema version views (#860)
- c1b0f90 Simplify
previous_migrationfunction (#922) - 7b932e9 Split pgroll latest (#861)
- be1a7cf Support altering primary key columns that are not included in FK constraints (#930)
- bc40891 Turn
Duplicatorinto aDBAction(#937) - 4971378 Update
pgroll latestto take account of migrationversion_schema(#896) - 1e4ed72 Update docs for new
versionSchemafield (#887) - 6218ca4 Update docs with
backfill-batch-delayandbackfill-batch-sizeoptions (#881) - c74a242 Update error type returned when
Roll.LatestVersionRemotefinds no version schema (#918) - 6f73c9e Use DropIndexAction when rolling back index creation (#891)
- 9535bc2 Use
DropFunctionActionin remaning operations (#880) - 803868a Use
jsonb_strip_nullsinread_schemafunction (#925) - fcda88a Use existing dbactions in
op_alter_column(#879)