diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b848f8e30b66bdeeadd148ee47c7cef51fd7421..3d60cbf5543236da3ea0370e4e38a4fdca53d465 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # WP Migrations Changelog +## [1.1.0] - 09-11-2024 +### Added +- New method to migration classes: `is_needed()` which can return false to skip specific migration version execution. +### Removed +- Removed `AbstractMigration::down()` as in WordPress context it is impossible to execute down migrations reliably and the method was never actually used. + ## [1.0.4] - 06-10-2023 ### Fixed - Respect status returned from migration. If any error occurred (migration returned false or threw), break migration process. diff --git a/composer.json b/composer.json index b0f3c7d968c4f9564c93bf991bad93c384ad7984..49f4b2a7059e090f2edf239640ee329cf437ba0d 100644 --- a/composer.json +++ b/composer.json @@ -1,24 +1,24 @@ { - "name": "wpdesk/wp-migrations", - "type": "library", + "name": "wpdesk/wp-migrations", + "type": "library", "description": "Doctrine Migrations clone suited for WordPress purposes.", "license": "MIT", - "authors": [ - { - "name": "Bart Jaskulski", - "email": "bartek.jaskulski@wpdesk.net" - } - ], - "require": { + "authors": [ + { + "name": "Bart Jaskulski", + "email": "bartek.jaskulski@wpdesk.net" + } + ], + "require": { "php": "^7.1|^8", - "ext-json": "*", - "psr/log": "^1" - }, - "autoload": { - "psr-4": { - "WPDesk\\Migrations\\": "src" - } - }, + "ext-json": "*", + "psr/log": "^1" + }, + "autoload": { + "psr-4": { + "WPDesk\\Migrations\\": "src" + } + }, "autoload-dev": { "psr-4": { "WPDesk\\Migrations\\Tests\\": "tests" @@ -27,12 +27,10 @@ "tests/stubs" ] }, - "require-dev": { - "szepeviktor/phpstan-wordpress": "^1.1", - "wpdesk/wp-code-sniffer": "^1.2", - "phpstan/phpstan": "^1.10", - "phpstan/extension-installer": "^1.3" - }, + "require-dev": { + "wpdesk/wp-code-sniffer": "^1.2", + "wpdesk/phpstan-rules": "^1" + }, "scripts": { "style:fix": "phpcbf", "test:phpstan": "phpstan --configuration=phpstan.neon.dist --memory-limit=-1 analyze", @@ -44,10 +42,17 @@ "@test:phpunit" ] }, - "config": { - "allow-plugins": { - "dealerdirect/phpcodesniffer-composer-installer": true, - "phpstan/extension-installer": true - } - } + "config": { + "gitlab-domains": ["gitlab.wpdesk.dev"], + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true, + "phpstan/extension-installer": true + } + }, + "repositories": { + "wpdesk": { + "type": "composer", + "url": "https://gitlab.wpdesk.dev/api/v4/group/wpdesk/-/packages/composer/" + } + } }