Append sqlite suffix to name on info output#2307
Conversation
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
|
FTR one used to be able to create a SqliteAdapter with empty options (e.g. for tests), but since this change at least the "name" option needs to be provided. I guess in the context of normal invocation that should always be set (cf. Phinx config environment section). |
|
@InvisibleSmiley Just from reading the code, I think the previous behavior was that if no options was provided, then it'd create a file named Though how hard is it to just mandate people use either |

Closes #2298
PR makes it so that the database name informational output will contain the suffix for sqlite connections, e.g.:
This should make the info more informational on what's happening. Working on this, I am definitely leaning increasingly towards deprecating/removing the
suffixoption altogether and require that users only use thenameoption instead, which is similar to how most ORMs handle it.