Added .env field for MySQL strict mode

This commit is contained in:
Hillel Coren 2015-11-29 12:12:59 +02:00
parent da086d3345
commit 68bb3c8a82
5 changed files with 105 additions and 107 deletions

View File

@ -6,6 +6,7 @@ APP_KEY=SomeRandomString
APP_TIMEZONE APP_TIMEZONE
DB_TYPE=mysql DB_TYPE=mysql
DB_STRICT=false
DB_HOST=localhost DB_HOST=localhost
DB_DATABASE=ninja DB_DATABASE=ninja
DB_USERNAME DB_USERNAME

View File

@ -576,6 +576,3 @@ if (Auth::check() && Auth::user()->id === 1)
Auth::loginUsingId(1); Auth::loginUsingId(1);
} }
*/ */

View File

@ -621,7 +621,7 @@ class Invoice extends EntityModel implements BalanceAffecting
'renderSettings' => [ 'renderSettings' => [
'passThroughHeaders' => true, 'passThroughHeaders' => true,
], ],
'delayTime' => 1000, // 'delayTime' => 1000,
]); ]);
$opts = [ $opts = [

View File

@ -61,7 +61,7 @@ return [
'charset' => 'utf8', 'charset' => 'utf8',
'collation' => 'utf8_unicode_ci', 'collation' => 'utf8_unicode_ci',
'prefix' => '', 'prefix' => '',
'strict' => false, 'strict' => env('DB_STRICT', false),
], ],
'pgsql' => [ 'pgsql' => [

View File

@ -673,7 +673,7 @@ return array(
'counter' => 'Counter', 'counter' => 'Counter',
'payment_type_dwolla' => 'Dwolla', 'payment_type_dwolla' => 'Dwolla',
'gateway_help_43' => ':link to sign up for Dwolla.<br/>Note: remove dashes from the Destination/Dwolla Id', 'gateway_help_43' => ':link to sign up for Dwolla',
'partial_value' => 'Must be greater than zero and less than the total', 'partial_value' => 'Must be greater than zero and less than the total',
'more_actions' => 'More Actions', 'more_actions' => 'More Actions',