This is a (multiple allowed):
[ ] feature-discussion (RFC)
CakePHP Version: 3.4.x
using SQLite databases
DebugKit SQLite file is in 0644 mode and can't be writed by my group
Bases PHP function and method (sqlite_open or SQLite3::_construct()) have a "mode" option to fix the database file mode
PDO can't do that.
I propose a new option in ConnectionManager config for "SQLite" called "mask".
In CakeDatabaseDriverSqlite::connect(), test if file exist first, if not, flag it and chmod the created file with mask if $options['mask'] is set
Sounds like a great idea. Any chance you'd be willing to open a pull request with the changes you think should be done?
i'll try to do that, i already have another issue to PR too ;)
Closing as a pull request is open now.
Most helpful comment
i'll try to do that, i already have another issue to PR too ;)