WIP
Specify config file in params
section for composer-config-plugin
How to configure DBAL connections
<?php
return [
// cycle DBAL config
'cycle.dbal' => [
'default' => 'default',
'aliases' => [],
'databases' => [
'default' => ['connection' => 'sqlite']
],
'connections' => [
'sqlite' => [
'driver' => \Spiral\Database\Driver\SQLite\SQLiteDriver::class,
'connection' => 'sqlite:@runtime/database.db',
'username' => '',
'password' => '',
]
],
],
// cycle common config
'cycle.common' => [
'entityPaths' => [
'@src/Entity'
],
],
// cycle migration config
'cycle.migrations' => [
'directory' => '@root/migrations',
'namespace' => 'App\\Migration',
'table' => 'migration',
'safe' => false,
],
];
migrate/list
migrate/create
migrate/generate
migrate/up
migrate/down