29 Commits

Author SHA1 Message Date
Luke Towers
c137760498 Run all config files through ArrayFile parser
This will minimize changes when ConfigWriter is used to set config values through PHP.
2022-03-16 10:55:07 -06:00
Luke Towers
50417b2cb1 Remove support for varcharmax
This was originally added in bd9f88587f (and further refined in 160ae441ff) as a workaround for issues in MySQL < 5.7 and MariaDB < 10.2 related to the default string length when using the recommended utf8mb4 database encoding.

As of Laravel 8 the minimum supported versions of MySQL and MariaDB are not affected by this issue so we're now removing this configuration / workaround in Winter v1.2.
2022-03-09 16:05:58 -06:00
Luke Towers
be45c63d2c Code style fix 2022-02-15 13:24:16 -06:00
Luke Towers
f6510979cc Sync config defaults with Laravel 9.x skeleton
Changed from Laravel defaults:
- Array configuration items should have their assigner operators aligned and keys should be sorted alphabetically

Removed:
- database.fetch: Removed from the default in Laravel 5.4 (and originally changed to FETCH_OBJ in 5.3) see 770c41552f & https://github.com/laravel/laravel/pull/3815
- filesystems.cloud: Removed from the default in Laravel 8.4.4 since it's not good practice to use Storage::cloud(), should use explicit disk configurations instead. See 82213fbf40
- services.mandrill: No longer officially supported since < Laravel 6.x; can use the SMTP driver instead
- services.sparkport: No longer officially supported in Laravel since < Laravel 6.x or Winter since v1.2 (third party package to reprovide driver is available but config should be manually added when desired.)
- services.stripe: Removed in Laravel v5.8.35, see 83d2ecc0e9

Explicitly not synced:
- Some calls to env(), will be addressed by future work on the ConfigWriter
- auth.php, will be addressed by future work to bring the Winter auth system more in line with the Laravel one
- cors.php, not implemented by default in Winter at the moment, plugins are available
- filesystems.php: storage.links & storage.disks.public not included because storage:link is not supported by Winter yet and further thought is needed for its inclusion.
- mail.php: markdown - Laravel's markdown mail functionality not verified to work within Winter which has it's own set of email templating logic. May be investigated and included later down the road if desired.
- sanctum.php: Laravel Sanctum is an authentication system for Laravel that is completely untested with Winter. Can be evaluated at a later date for inclusion.
2022-02-14 14:42:24 -06:00
Luke Towers
099f731290 Remove database.useConfigForTesting
Was redundant, should be using environment config (config/testing/*.php) instead
2021-12-14 01:19:01 -06:00
Ben Thomson
fdc8a7a993
Synchronise config files with Laravel 6 (#179) 2021-05-17 16:17:17 +08:00
Luke Towers
801c323297
Switch default db host to 127.0.0.1
This reverts 1ec2b69924 (bringing back 6c5a83de89) as it is more important for the default configuration to be in a working state for most environments than to optimize for performance for some environments. Having the default be `localhost` has caused issues for a large number of people (see https://github.com/octobercms/october/issues/3411, https://github.com/wintercms/winter/discussions/157, and probably many more). 

Additionally, this has been the default in Laravel since 5.2 (https://github.com/laravel/laravel/pull/3641) & 5.3 (fd42e10a5f).
2021-05-15 11:01:09 -06:00
Luke Towers
0061b09246
Fix issues when using a mirrored public directory and sqlite
Replaces #67
2021-04-05 10:43:47 -06:00
Luke Towers
8c4297af4b Merge branch 'october-develop' into develop
* october-develop:
  Support readonly and disabled fields when value is an array (#4683)
  Exception handling
  Improve configuration files (#5544)
  Update Dutch (nl) translations (#5543)

# Conflicts:
#	config/mail.php
#	modules/system/classes/MailManager.php
2021-03-31 10:20:40 -06:00
Alwin Drenth
675a90daa1
Improve configuration files (#5544)
* Improve config indentation

* Add missing new lines in config

* Add trailing comma to cms configuration file
2021-03-24 16:55:28 +11:00
Luke Towers
cfa763b714 Initial rebrand commit generated from the 1.0 rebrand branch patch file 2021-03-10 15:02:53 -06:00
Ben Thomson
3591f38cd4 Add predis client as default in config 2020-02-27 16:39:25 +08:00
Ben Thomson
86351cec7f Revert "Add Composer scripts"
This reverts commit a1cfc2aa58c2fa88c186a4306381fdcf1cd4f269.
2020-01-20 16:14:00 +08:00
Ben Thomson
a1cfc2aa58 Add Composer scripts 2020-01-20 16:08:15 +08:00
Samuel Georges
160ae441ff Shorten default string length
- Introduce varcharmax config item, this default eventually should be increased to 255, when MySQL 5.6 support is dropped
- Config item can be kept to retain legacy support
- Only apply to mysql driver, previously was impacting other drivers
- Source true config values, previously was sourcing hard coded "mysql" connection values
2019-12-29 11:43:27 +11:00
Samuel Georges
bbed527ecc Supply engine as default config
This is currently supplied by the blueprint. This commit is a proactive step to move to config instead. Consider removing from this from blueprints in later years:

$table->engine = 'InnoDB';
2019-12-29 10:14:49 +11:00
Tomasz Strojny
956a234920 Add ability to specify the connection used for running tests (#4159)
Credit to @czerwonyd
2019-03-31 06:28:24 -06:00
Luke Towers
cf01254b2b
Use utf8mb4 as the default character set
Will properly support emojis and other multibyte characters being stored. Laravel implemented as default in 5.4: 9d01389ce3
2018-01-26 09:44:27 -06:00
Panagiotis Koursaris
90635dd3b9 Add default ports on database config (#3308)
Credit to @panakour
2017-12-20 14:13:03 -06:00
Samuel Georges
1ec2b69924 Revert 6c5a83de89dfb0704ed2b0d2b83ad90ecd65c15f
This has caused performance issues for some people, will need to write a known error about using 127.0.0.1 in some environments instead
2017-02-26 12:57:40 +11:00
Samuel Georges
6c5a83de89 Use 127.0.0.1 in favor of localhost
- Speed improvement
- Consistency with redis config
- Fixes issue with XAMPP on macOS, see: http://stackoverflow.com/questions/20723803/pdoexception-sqlstatehy000-2002-no-such-file-or-directory
2017-01-24 08:36:50 +11:00
Pásztor Gábor
f98bc30072 Add missing option to redis config. 2016-02-05 09:31:17 +01:00
Samuel Georges
43e4a23161 Rollback changes from 7b174e6ce866deaa53a913bf3fa9851342601e26 2016-01-04 18:46:23 +11:00
Pásztor Gábor
7b174e6ce8 Add missing config file, remove php 5.4 support. 2016-01-02 15:41:27 +01:00
Samuel Georges
e1b23941ba Change default path 2015-03-14 15:12:43 +11:00
Samuel Georges
dbe1dafb28 Fixes typo in #998 2015-03-12 09:13:04 +11:00
Pásztor Gábor
b3dcce6d2a Updates on Brand Settings 2015-03-11 20:30:41 +01:00
Samuel Georges
1ab8858271 Minor touch ups 2015-03-03 18:38:36 +11:00
Samuel Georges
ed22cc9186 Migrate bootstrap process 2015-02-04 19:31:41 +11:00