Laravel 7.0 compatibility

This commit is contained in:
Maxime Rault 2020-05-04 13:53:32 +02:00
parent de8965af9f
commit 5c6bef7fa0
3 changed files with 16 additions and 16 deletions

View File

@ -17,7 +17,7 @@ It provides DB2 Connection by extending the Illuminate Database component of the
Add laravel-db2 to your composer.json file: Add laravel-db2 to your composer.json file:
``` ```
"require": { "require": {
"cooperl/laravel-db2": "^6.0" "cooperl/laravel-db2": "^7.0"
} }
``` ```
Use [composer](https://getcomposer.org) to install this package. Use [composer](https://getcomposer.org) to install this package.
@ -114,13 +114,13 @@ Simply add this code at the end of your ``app/config/database.php`` file:
], ],
'options' => [ 'options' => [
PDO::ATTR_CASE => PDO::CASE_LOWER, PDO::ATTR_CASE => PDO::CASE_LOWER,
PDO::ATTR_PERSISTENT => false, PDO::ATTR_PERSISTENT => false
PDO::I5_ATTR_DBC_SYS_NAMING => false,
PDO::I5_ATTR_COMMIT => PDO::I5_TXN_NO_COMMIT,
PDO::I5_ATTR_JOB_SORT => false,
PDO::I5_ATTR_DBC_LIBL => '',
PDO::I5_ATTR_DBC_CURLIB => '',
] ]
+ (defined('PDO::I5_ATTR_DBC_SYS_NAMING') ? [PDO::I5_ATTI5_ATTR_DBC_SYS_NAMINGR_COMMIT => false] : [])
+ (defined('PDO::I5_ATTR_COMMIT') ? [PDO::I5_ATTR_COMMIT => PDO::I5_TXN_NO_COMMIT] : [])
+ (defined('PDO::I5_ATTR_JOB_SORT') ? [PDO::I5_ATTR_JOB_SORT => false] : [])
+ (defined('PDO::I5_ATTR_DBC_LIBL') ? [PDO::I5_ATTR_DBC_LIBL => ''] : [])
+ (defined('PDO::I5_ATTR_DBC_CURLIB') ? [PDO::I5_ATTR_DBC_CURLIB => ''] : [])
], ],
``` ```

View File

@ -16,8 +16,8 @@
} }
], ],
"require": { "require": {
"php": "^7.2", "php": "^7.2.5",
"illuminate/database": "^6.0" "illuminate/database": "^7.0"
}, },
"require-dev": { "require-dev": {
}, },

View File

@ -142,13 +142,13 @@ return [
], ],
'options' => [ 'options' => [
PDO::ATTR_CASE => PDO::CASE_LOWER, PDO::ATTR_CASE => PDO::CASE_LOWER,
PDO::ATTR_PERSISTENT => false, PDO::ATTR_PERSISTENT => false
PDO::I5_ATTR_DBC_SYS_NAMING => false, ]
PDO::I5_ATTR_COMMIT => PDO::I5_TXN_NO_COMMIT, + (defined('PDO::I5_ATTR_DBC_SYS_NAMING') ? [PDO::I5_ATTI5_ATTR_DBC_SYS_NAMINGR_COMMIT => false] : [])
PDO::I5_ATTR_JOB_SORT => false, + (defined('PDO::I5_ATTR_COMMIT') ? [PDO::I5_ATTR_COMMIT => PDO::I5_TXN_NO_COMMIT] : [])
PDO::I5_ATTR_DBC_LIBL => '', + (defined('PDO::I5_ATTR_JOB_SORT') ? [PDO::I5_ATTR_JOB_SORT => false] : [])
PDO::I5_ATTR_DBC_CURLIB => '', + (defined('PDO::I5_ATTR_DBC_LIBL') ? [PDO::I5_ATTR_DBC_LIBL => ''] : [])
], + (defined('PDO::I5_ATTR_DBC_CURLIB') ? [PDO::I5_ATTR_DBC_CURLIB => ''] : [])
], ],
], ],