docs: improve migration namespace descriptions#5915
docs: improve migration namespace descriptions#5915kenjis merged 14 commits intocodeigniter4:developfrom
Conversation
You can link to them.
grabFromDatabase() does not test anything.
|
I think this looks good but would it be easy enough to make it do all namespaces when either |
|
@lonnieezell Sorry, I can't get what you mean. |
|
Sorry. I meant it would be nice to set $namespace to either class MyTestCase extends DatabaseTestCase
{
protected $namespace = '--all';
// or
protected $namespace = 'all';
} |
|
@MGatner How about adding new special strings for all namespaces as @lonnieezell says? protected $namespace = 'all';
// or
protected $namespace = '*';Personally |
|
I'm not opposed. Out of all those I prefer Honestly I don't know how to feel about this feature. IMO running tests against a "partially-migrated" database seems like setup for a logical failure. I frequently have migrations modifying the same table across namespaces (like Myth:Auth creates What selective namespace migrating does add is efficiency, but I think this is a problem better solved with other tools (see my other comment about generating a "one-and-done" schema, like Rails). |
Description
Setting
nullin$namespacemeans all namespaces. It is not intuitive.So we better explain it in all relevant places.
nullin$namespaceChecklist: