Skip to content

Commit

Permalink
v1.3.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitexus committed Nov 17, 2024
1 parent 5016060 commit 4e81a2a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
6 changes: 3 additions & 3 deletions Examples/phinx-adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* EaseFluentPDO - Phinx database adapter.
*
* @author Vítězslav Dvořák <info@vitexsoftware.cz>
* @copyright 2020-2023 Vitex Software
* @copyright 2020-2024 Vitex Software
*/
if (file_exists('./vendor/autoload.php')) {
include_once './vendor/autoload.php';
Expand Down Expand Up @@ -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)
],
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
10 changes: 8 additions & 2 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -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 <info@vitexsoftware.cz> Sun, 17 Nov 2024 19:17:13 +0100

php-vitexsoftware-ease-fluentpdo (1.2.1) main; urgency=medium

* Czech comments transated to English

-- vitex <info@vitexsoftware.cz> Fri, 20 Sep 2024 15:03:34 +0200
-- vitex <info@vitexsoftware.cz> Sun, 17 Nov 2024 19:16:51 +0100

php-vitexsoftware-ease-fluentpdo (1.2.0) main; urgency=medium

Expand Down
10 changes: 5 additions & 5 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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'));
Expand All @@ -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);
Expand Down

0 comments on commit 4e81a2a

Please sign in to comment.