File tree Expand file tree Collapse file tree 3 files changed +37
-1
lines changed Expand file tree Collapse file tree 3 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 37
37
"phpixie/validate" : " ~3.0" ,
38
38
"phpixie/social" : " ~3.0" ,
39
39
"phpixie/cli" : " ~3.0" ,
40
- "phpixie/console" : " ~3.0"
40
+ "phpixie/console" : " ~3.0" ,
41
+ "phpixie/migrate" : " ~3.0"
41
42
},
42
43
"require-dev" : {
43
44
"phpixie/test" : " ~3.0"
Original file line number Diff line number Diff line change @@ -214,6 +214,15 @@ public function console()
214
214
return $ this ->instance ('console ' );
215
215
}
216
216
217
+ /**
218
+ * Migrate
219
+ * @return \PHPixie\Migrate
220
+ */
221
+ public function migrate ()
222
+ {
223
+ return $ this ->instance ('migrate ' );
224
+ }
225
+
217
226
/**
218
227
* @param string $name
219
228
* @return mixed
@@ -440,6 +449,20 @@ protected function buildConsole()
440
449
$ this ->configuration ()->consoleProvider ()
441
450
);
442
451
}
452
+
453
+ /**
454
+ * @return \PHPixie\Migrate
455
+ */
456
+ protected function buildMigrate ()
457
+ {
458
+ $ configuration = $ this ->configuration ();
459
+
460
+ return new \PHPixie \Migrate (
461
+ $ this ->database (),
462
+ $ configuration ->migrateRoot (),
463
+ $ configuration ->migrateConfig ()
464
+ );
465
+ }
443
466
444
467
/**
445
468
* @return Configuration
Original file line number Diff line number Diff line change @@ -96,4 +96,16 @@ public function socialConfig();
96
96
* @return \PHPixie\Console\Registry\Provider
97
97
*/
98
98
public function consoleProvider ();
99
+
100
+ /**
101
+ * Migrations configuration
102
+ * @return Data
103
+ */
104
+ public function migrateConfig ();
105
+
106
+ /**
107
+ * Migrations root
108
+ * @return Root
109
+ */
110
+ public function migrateRoot ();
99
111
}
You can’t perform that action at this time.
0 commit comments