Commit Graph

61 Commits

Author SHA1 Message Date
Anton Komarev
195faa16cb Fix types consistency in database config (#5191) 2019-12-25 09:05:29 -06:00
Dries Vints
665dfc4328 [6.0] Use phpredis as default Redis client (#5085)
* Use phpredis as default Redis client

Follow up for https://github.com/laravel/framework/pull/29688

It's best that we already start using `phpredis` as a default to discourage usage of Predis.

* Update database.php
2019-08-22 08:22:14 -05:00
Guilherme Pressutto
ddbbd0e67b Using environment variable to set redis prefix (#5062)
It was the only redis setting that wasn't overridable by an environment variable. It can help if you have multiple instances using the same `APP_NAME`, e.g. a staging instance
2019-07-16 13:38:28 -06:00
Antoni Siek
bf60f7f74f Added support for new redis URL property in config/database.php (#5037)
Regarding laravel/framework#28612
2019-05-30 11:22:45 -05:00
Taylor Otwell
b0e0bdc060 formatting 2019-05-07 07:38:15 -05:00
Mathieu TUDISCO
1086e26b32 Update database config relating to Url addition. 2019-05-07 13:49:22 +02:00
Jordan Hall
159b0e79cd Additional underscore on redis database prefix 2019-04-08 08:50:48 +01:00
Jordan Hall
e68ff0c66a Use Str class instead of helper function 2019-04-04 22:18:28 +01:00
Jordan Hall
c8bc79e94e Prefix redis database connection by default to mitigate multiple sites on the same server potentially sharing the same queued jobs 2019-04-04 15:11:18 +01:00
Taylor Otwell
3001f3c6e2 check if extension loaded 2019-02-28 14:31:42 -06:00
Taylor Otwell
a0f6bcc773 comment out options 2019-02-28 08:34:10 -06:00
Taylor Otwell
64b16c2852 revert to old redis config 2019-02-25 14:32:49 -06:00
Taylor Otwell
ea7fc0b336 update client 2019-02-15 07:51:45 -06:00
Taylor Otwell
df4ecb9c83 change default redis configuration structure 2019-02-14 11:03:41 -06:00
Taylor Otwell
9180f646d3 add env variable for mysql ssl cert 2019-01-17 10:41:23 -06:00
Taylor Otwell
c09519f547 formatting 2018-11-07 19:05:31 -05:00
Matthias Niess
5f7decfff1 introduce sqlite foreign_key_constraints config option
This enables the sqlite `foreign_key_constraints` option that was introduced with laravel/framework#26298 for all new installs.

The env variable DB_FOREIGN_KEYS was added to make it easier to handle this in testing (e.g. via phpunit.xml).
2018-10-30 14:24:12 +01:00
Laurence Ioannou
15dac2a961 Update database.php 2018-10-02 14:23:47 +10:00
Barry vd. Heuvel
c3b99e971c Use seperate cache DB for Redis 2018-05-23 21:50:25 +02:00
Frederik Sauer
bdca9d4781 Added port to sqlsrv settings
Most installations won't work without it.
2017-05-03 23:55:48 +02:00
Hélio
94b39dc576 Fix the commit for pass StyleCI 2017-05-03 13:22:10 -03:00
Hélio
e26bd3ffb0 Add sqlsrv as group connection
Since the doc says that the Laravel supports SQL Server out of the box, makes sense add it, out of the box.
2017-05-03 13:20:25 -03:00
Brent Shaffer
a812983d0b Adds socket to config/database.php for consistency
For the mysql driver only (as this only applies to mysql) add the "socket" configuration parameter and corresponding environment variable.
2017-03-15 17:23:34 -07:00
Taylor Otwell
770c41552f Remove fetch mode option. 2017-01-02 17:18:35 -06:00
Graham Campbell
36875bb98e Merge branch 'master' into develop 2016-12-29 13:03:32 +00:00
Taylor Otwell
45b779f807 cluster option not needed anymore 2016-12-12 16:05:32 -06:00
Damien Criado
7d4115f0ca Fix AUTH failed: ERR Client sent AUTH 2016-12-06 01:01:43 +01:00
Taylor Otwell
c803ff1caa revert broken PR 2016-11-16 15:15:29 -06:00
Taylor Otwell
8182b99112 Applied fixes from StyleCI 2016-11-16 20:57:24 +00:00
Loki Else
69df2ada11 Support predis v1.1.1
fix: `AUTH failed: ERR Client sent AUTH, but no password is set [tcp://127.0.0.1:6379]`

According to predix release log: https://github.com/nrk/predis/releases/tag/v1.1.1
2016-11-16 17:17:52 +08:00
Diogo Azevedo
9ca8ed9960 Update the default redis host 2016-11-14 23:44:01 -02:00
Roberto Aguilar
fd42e10a5f Changes localhost to 127.0.0.1 in database config
In https://github.com/laravel/laravel/pull/3641 was decided to use `127.0.0.1` instead of `localhost` to avoid DNS lookups

This change is to maintain consistency between `.env` and `database.php`
2016-11-14 15:19:31 -06:00
Taylor Otwell
9d01389ce3 use utf8mb4 as default character set 2016-10-24 16:07:22 -05:00
Taylor Otwell
d880fb5f85 no need for env 2016-09-22 12:26:13 -05:00
Till Krüss
54ee465deb Added database.redis.client configuration 2016-09-21 13:34:46 -07:00
vlakoff
07c95968b7 Use proper PDO fetch style 2016-06-19 05:16:51 +02:00
Jorge González
8fc0df14bb Add "sslmode" setting for PostgreSQL connection
The commit 586bffa1d7 added support for sslmode in PostgresConnector.php and sslmode has been around since postgres version 9.1 (2011). 

This change makes it possible to specify sslmode from the config file.

Also serves as documentation to other developers so they don't have to
dive deep into the code to figure out that it's posible to set this option.

The posible values for sslmode are:
    disable, allow, prefer, require, verify-ca, verify-full

The default value is "prefer".

http://www.postgresql.org/docs/9.5/static/libpq-ssl.html#LIBPQ-SSL-PROTECTION
2016-05-12 00:59:15 -05:00
Adam14Four
f237656c68 Enabled MySQL "strict" mode by default 2016-05-10 12:30:43 -07:00
Matthias Niess
eb7743f577 allow for setting sqlite database via env 2016-03-21 20:58:55 +01:00
Taylor Otwell
ec0e06e783 cleaning up configs 2016-03-01 08:23:00 -06:00
TGM
8dbd26020a Replaced TAB with space 2016-03-01 14:31:07 +02:00
TGM
9fc55e8464 Added DB_PORT as a default enviroment variable 2016-03-01 14:29:05 +02:00
david-ridgeonnet
89d693b5e6 Added default engine in configuration 2016-02-03 14:34:03 +00:00
Taylor Otwell
8c27cb56d0 default to null 2015-12-07 12:05:42 -06:00
Taylor Otwell
4fba29c0ec fix problems 2015-12-07 12:03:49 -06:00
Cory Fowler
a33c66cf47 changed redis support to load config from env 2015-12-01 14:15:22 -08:00
pedes42
879bc14650 Replace storage_path with database_path helper
According to the docs, the sqlite database should be located within the "database" folder.
2015-09-18 14:16:52 +02:00
Bas Peters
2c4964e159 Set default charset for sqlsrv driver to utf8 2015-06-11 17:20:30 +02:00
Graham Campbell
060938bc66 PSR-2
Signed-off-by: Graham Campbell <graham@cachethq.io>
2015-06-01 15:46:32 +01:00
Jimmy Puckett
4ee6523dfa Using the path parameter in the path method. 2015-05-28 15:31:26 -04:00