Skip to content

Commit

Permalink
@since tags and release notes for #14897
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
brandonkelly committed Apr 29, 2024
1 parent 7f8c1fb commit 271972b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG-WIP.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
### Administration
- Improved the behavior of the URI input within Edit Route modals. ([#14884](https://github.com/craftcms/cms/issues/14884))
- Added the `asyncCsrfInputs` config setting. ([#14625](https://github.com/craftcms/cms/pull/14625))
- Added the `backupCommandFormat` config setting. ([#14897](https://github.com/craftcms/cms/pull/14897))
- The `backupCommand` config setting can now be set to a closure, which will be passed a `mikehaertl\shellcommand\Command` object. ([#14897](https://github.com/craftcms/cms/pull/14897))
- `resave` commands now support an `--if-invalid` option. ([#14731](https://github.com/craftcms/cms/issues/14731))

### Development
Expand Down
1 change: 1 addition & 0 deletions src/config/GeneralConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ class GeneralConfig extends BaseConfig
* :::
*
* @group Environment
* @since 4.9.0
*/
public ?string $backupCommandFormat = null;

Expand Down
6 changes: 6 additions & 0 deletions src/db/pgsql/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,12 @@ public function loadTableSchema($name): ?TableSchema
return null;
}

/**
* Whether `pg_restore` should be used by default for the backup command.
*
* @return bool
* @since 4.9.0
*/
public function usePgRestore(): bool
{
return in_array(Craft::$app->getConfig()->getGeneral()->backupCommandFormat, [
Expand Down

0 comments on commit 271972b

Please sign in to comment.