Carsten Brandt
844eacba26
Update BaseMigrateController.php
...
make sure console arguments are recognized as array.
2017-06-05 11:31:38 +02:00
Carsten Brandt
6ec6f8d76c
moved include file logic to separate method
2017-06-02 13:35:45 +02:00
Carsten Brandt
5288577221
make migrationPath accept an array
2017-06-02 13:35:45 +02:00
Tobias Munk
deb1def9d3
added alias syntax support
...
fixes #13356
fixes #13359
2017-06-02 13:34:34 +02:00
Carsten Brandt
cb9462b224
Added support for specifying aliases for migrationNamespaces
...
This is used to specify pathes to migrations that do not have
namespaces.
While not directly supported by the migration command provideded by the
framework, these migrations exist in a lot of extensions because custom implementations
of migration controllers out of the framework were using this approach
to load multiple migrations from multiple paths.
Even the framework itself currently ships non-namespaced migrations:
- 17a1d91e4a/framework/rbac/migrations/m140506_102106_rbac_init.php
- 17a1d91e4a/framework/caching/migrations/m150909_153426_cache_init.php
- 17a1d91e4a/framework/log/migrations/m141106_185632_log_init.php
This change allows existing applications to adopt the new namespace-based approach
while keeping existing migrations. While it would be possible to add
namespaces to migrations in the application itself, it is not easily possible
to add namespaces to migrations that come from external sources like
extensions.
2017-06-02 13:34:34 +02:00
Carsten Brandt
4b9e48b8dc
improved docs: link term "path alias" to the guide
2017-06-02 10:45:20 +02:00
Klimov Paul
862a5dd6b7
Added support for field yii\console\controllers\BaseMigrateController::$migrationNamespaces setup from CLI
2017-01-16 16:48:44 +02:00
Klimov Paul
25a7ed60e7
Docs about namespaced migrations fixed
2017-01-10 14:22:50 +02:00
Robert Korulczyk
4aa935e69e
Fixes #12055 : Changed boolean to bool and integer to int in phpdoc
2016-11-07 02:51:39 +03:00
Carsten Brandt
11fe407ad0
release version 2.0.10
2016-10-20 14:02:50 +02:00
Nikola Kovacs
19a896a299
Improve phpdoc and error in BaseMigrateController ( #12573 ) [skip ci]
2016-09-20 22:44:00 +02:00
Klimov Paul
239cdcdf8a
Regex fix
2016-09-16 11:58:41 +03:00
Klimov Paul
0450b2002a
Added missing @since
2016-09-13 11:26:50 +03:00
Klimov Paul
7acd3b6400
Fixed namespace path resolve on Windows at BaseMigrateController
2016-09-13 11:25:48 +03:00
Paul Klimov
8aa0e85a07
Add migration namespace support ( #12511 )
...
namespace support added to `BaseMigrateController`
2016-09-12 14:01:04 +03:00
Егор Малыгин
a2123d8bb9
Fixed typo in BaseMigrateController.php ( #12033 )
2016-07-28 16:34:48 +03:00
Carsten Brandt
731769241b
release version 2.0.8
2016-04-28 16:50:20 +02:00
Evgeniy Tkachenko
72eca59399
[ci skip] add note about create_xxx drop_xxx ( #11435 )
2016-04-27 16:44:26 +03:00
Paul Klimov
b72524d490
Fixes #11280 migrate autogenerate breaks MongoDB migration
...
Fixes #11280 : Descendants of `yii\console\controllers\BaseMigrateController`, like the one for MongoDB, unable to create new migration
2016-04-05 23:05:40 +03:00
Angel Guevara
49aec24ae1
Enh: Migrate command now supports foreign keys
...
Fixes #11207 : migrate command can create foreign keys
2016-04-05 01:02:52 +03:00
Carsten Brandt
5db772ef7b
cleanup console namespace changes
2016-02-06 20:05:14 +01:00
Pavel Solomienko
2300e9cbe5
Update BaseMigrateController.php
2016-01-13 19:33:53 +02:00
SilverFire - Dmitry Naumenko
cd87d67f34
Global DOCS update: ~~~ replaced with ```
2015-12-02 23:15:28 +02:00
Daniel Gomez Pan
0b950f4039
Fix phpdocs and small bug
2015-11-24 20:03:09 +01:00
Daniel Gomez Pan
2a1764f97a
Enhancements for #9465
2015-11-23 13:33:26 +03:00
Alexander Makarov
f03808a7c8
Additional fixes for #9465
2015-11-20 23:04:29 +03:00
Alexander Makarov
76e8556d34
#9465 better naming, code polish, changelog, docs wording
2015-11-20 22:50:32 +03:00
Daniel Gomez Pan
9afd240ab6
Fixes #9465 : ./yii migrate/create now generates code based on migration name and --fields
2015-11-20 22:08:47 +03:00
Nikita Verkhovin
99c6fb23a2
Added total applied migrations to final report
2015-10-27 02:23:21 +06:00
Alexander Makarov
1b3770fd21
Use === instead of == where possible
2015-10-10 01:04:35 +03:00
Alexander Makarov
5ab4f0f090
Better quotes usage in strings
...
- Use single quote where interpolation isn't necessary
- Use interpolation when it's better than concatenation
2015-10-10 00:23:52 +03:00
Carsten Brandt
9aac3966a6
fixed typo in error message
...
#9154
2015-07-19 17:42:41 +02:00
Alexander Pletnev
9ab57780ab
close #9149
2015-07-19 18:27:24 +03:00
Alexander Makarov
c115c677e6
Fixed #9141 : Fixed docs for migrate/history
2015-07-17 14:27:09 +03:00
lynicidn
a71423cf2a
Fixes #7269 : yii\console\controllers\BaseMigrateController now throws exception if directory specified doesn't exist and action isn't create
2015-02-19 02:23:45 +03:00
Alexander Makarov
6481d13494
Optimized checks order in conditions
2015-02-08 17:56:36 +03:00
Alexander Makarov
9e42285f61
Reverted #3305
2014-11-28 17:13:52 +03:00
Alexander Makarov
5d7b70da5f
Adjusted #3305 : MigrateController::refreshSchema() is no more called automatically
2014-11-27 11:54:30 +03:00
Alexander Makarov
7c5938f902
#4791 : Added more colors to yii migrate command
2014-11-27 04:03:33 +03:00
Alexander Makarov
3c70d3c317
Fixes #3305 : yii migrate now automatically flushes DB schema cache after successful migration
2014-11-27 03:38:25 +03:00
Qiang Xue
530537e48f
Fixes #5817 [skip ci]
2014-11-01 20:41:34 -04:00
Alexander Mohorev
899b778994
Correct type declarations
2014-10-25 16:35:50 +03:00
Alexander Makarov
02622b6fe4
phpdoc fixes and additions
2014-10-14 01:35:21 +04:00
Alexander Makarov
00ca1cb4b3
Fixes #4914
2014-09-04 03:27:13 +04:00
Carsten Brandt
3a1e0f3a5c
property codestyle framework
2014-07-30 00:21:31 +02:00
Alexander Makarov
0edd8bc65a
Fixed missing and incorrect phpdoc
2014-07-25 17:26:35 +04:00
Carsten Brandt
33edfcff2e
Use limit(null) instead of limit(-1)
...
in migration controller to be compatible to more backends
fixes #3947
2014-07-02 19:48:39 +02:00
Klimov Paul
166465ec7a
MigrationInterface extracted
2014-06-17 18:00:22 +03:00
Klimov Paul
6cc1310aed
BaseMigrateController extracted
2014-06-17 17:49:21 +03:00