diff --git a/Examples/phinx-adapter.php b/Examples/phinx-adapter.php index ae6a032..319bcd4 100644 --- a/Examples/phinx-adapter.php +++ b/Examples/phinx-adapter.php @@ -4,7 +4,7 @@ * EaseFluentPDO - Phinx database adapter. * * @author Vítězslav Dvořák - * @copyright 2020-2023 Vitex Software + * @copyright 2020-2024 Vitex Software */ if (file_exists('./vendor/autoload.php')) { include_once './vendor/autoload.php'; @@ -32,12 +32,12 @@ [ 'default_environment' => 'development', 'development' => [ - 'adapter' => \Ease\Functions::cfg('DB_CONNECTION'), + 'adapter' => \Ease\Shared::cfg('DB_CONNECTION'), 'name' => $engine->database, 'connection' => $engine->getPdo($sqlOptions) ], 'production' => [ - 'adapter' => \Ease\Functions::cfg('DB_CONNECTION'), + 'adapter' => \Ease\Shared::cfg('DB_CONNECTION'), 'name' => $engine->database, 'connection' => $engine->getPdo($sqlOptions) ], diff --git a/composer.json b/composer.json index d339417..de5bcee 100644 --- a/composer.json +++ b/composer.json @@ -8,9 +8,9 @@ } ], "license": "MIT", - "minimum-stability": "dev", + "minimum-stability": "stable", "require": { - "vitexsoftware/ease-core": ">=1.40", + "vitexsoftware/ease-core": ">=1.45", "fpdo/fluentpdo": ">=2.1" }, "require-dev": { diff --git a/debian/changelog b/debian/changelog index ad7861f..d48278e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,14 @@ -php-vitexsoftware-ease-fluentpdo (1.2.1) UNRELEASED; urgency=medium +php-vitexsoftware-ease-fluentpdo (1.3.0) UNRELEASED; urgency=medium + + * semantic versioning ready + + -- vitex Sun, 17 Nov 2024 19:17:13 +0100 + +php-vitexsoftware-ease-fluentpdo (1.2.1) main; urgency=medium * Czech comments transated to English - -- vitex Fri, 20 Sep 2024 15:03:34 +0200 + -- vitex Sun, 17 Nov 2024 19:16:51 +0100 php-vitexsoftware-ease-fluentpdo (1.2.0) main; urgency=medium diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 46cc8f8..027218c 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -5,7 +5,7 @@ * vendor/bin/phinx migrate -c Examples/phinx-adapter.php * vendor/bin/phinx seed:run -c Examples/phinx-adapter.php */ -use Ease\Functions; +use Ease\Shared; use Ease\SQL\Engine; use Phinx\Config\Config; use Phinx\Db\Action\DropTable; @@ -26,10 +26,10 @@ define('DB_PASSWORD', 'phpunit'); if (\Ease\Shared::cfg('DB_CONNECTION') == 'sqlite') { - if (file_exists(\Ease\Functions::cfg('DB_DATABASE'))) { - unlink(\Ease\Functions::cfg('DB_DATABASE')); + if (file_exists(\Ease\Shared::cfg('DB_DATABASE'))) { + unlink(\Ease\Shared::cfg('DB_DATABASE')); } - touch(\Ease\Functions::cfg('DB_DATABASE')); + touch(\Ease\Shared::cfg('DB_DATABASE')); } else { new DropTable(new Table('test')); new DropTable(new Table('log')); @@ -40,7 +40,7 @@ $configArray['paths']['migrations'] = __DIR__ . '/migrations'; $configArray['paths']['seeds'] = __DIR__ . '/seeds'; $configArray['environments']['test'] = [ - 'adapter' => Functions::cfg('DB_CONNECTION'), + 'adapter' => Shared::cfg('DB_CONNECTION'), 'connection' => $pdo->getPDO() ]; $config = new Config($configArray);