@@ -737,6 +737,31 @@ public static function newEncryptionKey() {
737
737
], 'security ' );
738
738
}
739
739
740
+ public static function infoMigrations () {
741
+ return new Command ("info-migrations " , "" , "Returns the migration infos. " , [
742
+ 'info_migrations ' ,
743
+ 'info:migrations ' ,
744
+ 'infoMigrations '
745
+ ], [
746
+ "d " => Parameter::create ("database " , "The database offset. " , [], 'default ' ),
747
+ 'o ' => Parameter::create ('domain ' , 'The domain in which the database models are. ' , [], '' )
748
+ ], [
749
+ 'Display all migrations for the default database ' => 'Ubiquity info:migrations '
750
+ ], 'models ' );
751
+ }
752
+
753
+ public static function migrations () {
754
+ return new Command ("migrations " , "" , "Display and execute the database migrations. " , [
755
+ 'migrations ' ,
756
+ 'migrate '
757
+ ], [
758
+ "d " => Parameter::create ("database " , "The database offset. " , [], 'default ' ),
759
+ 'o ' => Parameter::create ('domain ' , 'The domain in which the database models are. ' , [], '' )
760
+ ], [
761
+ 'Display and execute all migrations for the default database ' => 'Ubiquity migrations '
762
+ ], 'models ' );
763
+ }
764
+
740
765
protected static function getCustomCommandInfos () {
741
766
$ result = [];
742
767
$ commands = self ::getCustomCommands ();
@@ -828,6 +853,8 @@ public static function getCommands() {
828
853
self ::version (),
829
854
self ::model (),
830
855
self ::allModels (),
856
+ self ::infoMigrations (),
857
+ self ::migrations (),
831
858
self ::dao (),
832
859
self ::selfUpdate (),
833
860
self ::composer (),
0 commit comments