Skip to content

Commit 3c5e474

Browse files
committed
Added migrations support. Default database changed to test, but would need to be configured properly.
1 parent d646b0b commit 3c5e474

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed

app/DoctrineMigrations/.gitkeep

Whitespace-only changes.

app/config/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
'username' => 'tifa',
1515
'password' => '',
1616
'port' => '3306',
17-
'database' => 'information_schema'
17+
'database' => 'Test'
1818
]
1919
],
2020
'twig' => [

bin/migrations.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name: Doctrine Migrations
2+
migrations_namespace: DoctrineMigrations
3+
table_name: doctrine_migration_versions
4+
migrations_directory: ../app/DoctrineMigrations

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
},
99
"require": {
1010
"php": ">=5.5.3",
11-
"strident/trident": "1.0.1-alpha"
11+
"strident/trident": "1.0.1-alpha",
12+
"symfony/yaml": "2.5.*"
1213
},
1314
"config": {
1415
"bin-dir": "bin"

public/index_dev.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
require_once __DIR__.'/../app/TridentKernel.php';
55

66
$request = Trident\Component\HttpFoundation\Request::createFromGlobals();
7-
$kernel = new TridentKernel('dev', TridentKernel::DEBUG_DISABLED);
87
$kernel = new TridentKernel('dev', TridentKernel::DEBUG_ENABLED);
8+
$kernel = new TridentKernel('dev', TridentKernel::DEBUG_DISABLED);
99

1010
$response = $kernel->handle($request);
1111
$response->send();

0 commit comments

Comments
 (0)