forked from ferpetrelli/kohana-flexible-migrations
-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.php
38 lines (30 loc) · 1.01 KB
/
init.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
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php defined('SYSPATH') or die('No direct script access.');
// FlexibleMigrations Model (change if neccesary)
// define('FLEXMIGRATION_MODEL', 'migration');
// Enabling the Userguide module from my Module
// Kohana::modules(Kohana::modules() + array('userguide' => MODPATH.'userguide'));
Route::set('migrations_route', 'migrations')
->defaults(array(
'controller' => 'flexiblemigrations',
'action' => 'index',
));
Route::set('migrations_new', 'migrations/new')
->defaults(array(
'controller' => 'flexiblemigrations',
'action' => 'new',
));
Route::set('migrations_create', 'migrations/create')
->defaults(array(
'controller' => 'flexiblemigrations',
'action' => 'create',
));
Route::set('migrations_migrate', 'migrations/migrate')
->defaults(array(
'controller' => 'flexiblemigrations',
'action' => 'migrate',
));
Route::set('migrations_rollback', 'migrations/rollback')
->defaults(array(
'controller' => 'flexiblemigrations',
'action' => 'rollback',
));