-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathphinx.php
More file actions
31 lines (27 loc) · 915 Bytes
/
phinx.php
File metadata and controls
31 lines (27 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
# Load composer
require_once __DIR__ . '/../vendor/autoload.php';
require_once __DIR__ . '/../bootstrap/app.php';
$config = $container['settings']['db'];
return [
'paths' => [
'migrations' => __DIR__ . '/../database/migrations',
'seeds' => __DIR__ . '/../database/seeds',
],
'templates' => [
'file' => __DIR__ . '/../app/Database/Migrations/MigrationStub.php'
],
'migration_base_class' => '\App\Database\Migrations\Migration',
'environments' => [
'default_migration_table' => 'migrations',
'default_database' => 'testing',
'testing' => [
'adapter' => $config['driver'],
'host' => $config['host'],
'name' => $config['database'],
'user' => $config['username'],
'pass' => $config['password'],
'port' => $config['port']
]
]
];