-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphinx.php
25 lines (23 loc) · 817 Bytes
/
phinx.php
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
<?php
$PDOoptions = [
PDO::ATTR_CASE => PDO::CASE_NATURAL,
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
PDO::ATTR_ORACLE_NULLS => PDO::NULL_NATURAL,
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
PDO::ATTR_STRINGIFY_FETCHES => false,
PDO::ATTR_EMULATE_PREPARES => false
];
$pdo = new PDO('sqlite::memory:', null, null, $PDOoptions);
return [
'paths' => [
'migrations' => __DIR__ . '/tests/migrations',
'seeds' => __DIR__ . '/tests/seeds'
],
'environments' => [
'default_database' => 'testing',
'testing' => [
'name' => 'testing',
'connection' => $pdo
]
]
];