Commit Graph

362 Commits

Author SHA1 Message Date
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
SilverFire - Dmitry Naumenko
f7c9e6b852 Enhanced FixtureController::getFixtureRelativeName()
Updated CHANGELOG
2017-05-30 21:27:50 +03:00
Skiba Max
51dd58cf34 Fixed #13551: loading fixtures in subdirectories 2017-05-30 21:27:43 +03:00
lynicidn
96dae1cebc file will not loaded
https://github.com/yiisoft/yii2/tree/master/framework/test
2017-04-27 20:51:56 +03:00
Alexander Makarov
70cd75c84e Fixes #13226: yii cache command now warns about the fact that it's not able to flush APC cache from console 2017-04-26 03:19:49 +03:00
Vladimir Reznichenko
6da1ec6fb2 Fixes #13845: mt_rand() is not used instead of rand() in yii\captcha\CaptchaAction + minor code improvements 2017-03-24 13:50:13 +03:00
SilverFire - Dmitry Naumenko
1dc4618f3d Fixed MessageConstroller::saveMessagesToDb() to work on different DBMS correctly
Closes #13494
2017-02-21 23:37:17 +02:00
Bizley
1749c46c5d Fixes #11502: Fixed yii\console\controllers\MessageController to properly populate missing languages in case of extraction with "db" format 2017-02-02 02:50:34 +03: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
Dmitry Naumenko
2853dcbad7 Update FixtureController.php 2017-01-02 10:13:43 +02:00
Sidney Lins (slinstj)
9173656b53 Improves error message for invalid namespace in FixtureController 2017-01-02 00:07:50 -02:00
SilverFire - Dmitry Naumenko
4454d05410 Added ZSH completion, moved scripts to a separate directory 2016-12-03 00:36:40 +01:00
Carsten Brandt
05b17ebb65 Added bash completion file for ./yii commands
This allows to auto-complete commands available by the `./yii`
executable on the bash by expanding the first argument with the TAB key.
E.g. Typing `./yii [TAB]` will list all commands. `./yii mig[TAB]` will
auto-complete to `./yii migrate` and tab after that will list all
migration sub-commands(actions).

fixes #475
2016-12-03 00:36:40 +01:00
SG5
1141fc81a7 Fixes #12735: Fixed yii\console\controllers\MigrateController creating multiple primary keys for field bigPrimaryKey:unsigned 2016-12-02 01:03:24 +03:00
Klimov Paul
18b0dab360 Fixed yii\console\controllers\AssetController::adjustCssUrl() breaks URL reference specification (url(#id)) 2016-11-29 10:24:39 +02:00
Klimov Paul
1157657cab Fixed incorrect order of migrations history in case yii\console\controllers\MigrateController::$migrationNamespaces is in use 2016-11-14 14:24:53 +02:00
Robert Korulczyk
450eefaa50 Some phpdoc fixes from scrutinizer. 2016-11-12 22:11:30 +01:00
evgen
5c3cdd792b fix code style 2016-11-12 18:15:27 +03:00
evgen
3d3d69e3a8 returned back orderBy() 2016-11-12 18:06:02 +03:00
evgen
50062d0b9f some change 2016-11-12 15:30:46 +03:00
evgen
c7c8f09827 ksort and reverse to uksort 2016-11-12 11:10:57 +03:00
evgen
481932e238 add migration name to sort 2016-11-12 02:20:00 +03:00
Evgeny
59f7335b8f change getMigrationHistory 2016-11-12 00:58:20 +03:00
Alexander Zlakomanov
b48b1a0657 Fixes #12904: Fixed lowercase table name in migrations 2016-11-08 23:39:44 +03:00
Alexander Makarov
2d96da4e29 Merge branch 'master' of https://github.com/diezztsk/yii2 into diezztsk-master 2016-11-07 13:23:03 +03:00
diezztsk
e30e53843a Changelog update. Fixed phpDoc comment. 2016-11-07 10:35:20 +07:00
Robert Korulczyk
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
diezztsk
99f1d04421 Extract default help header to protected method. 2016-11-03 11:41:34 +07:00
MKiselev
4f89265fff Fixes #12748: Migration generator now tries to fetch reference column name for foreignKey from schema if it's not set explicitly 2016-11-01 02:02:16 +03:00
Tobias Munk
02e0ac7034 Fixes #12807: Added console controller checks for yii\console\controllers\HelpController 2016-10-23 14:02:59 +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
SilverFire - Dmitry Naumenko
8ec60e3d9b Merge branch '12423-migration-tool' of https://github.com/pana1990/yii2 into pana1990-12423-migration-tool 2016-09-11 21:17:43 +03:00
Daniel Gomez Pan
ae42d7b281 Fix #12423 Fix bug migration tool when creating fields with brackets in comment 2016-09-11 18:03:09 +02:00
Klimov Paul
db15c50557 Fixed yii\console\controllers\AssetController looses bundle override configuration, which makes it external one 2016-08-31 17:25:52 +03:00
Klimov Paul
c9fc60fe74 Fixed yii\console\controllers\AssetController looses custom options of 'target' bundles 2016-08-31 15:59:26 +03:00
Klimov Paul
56cc97ae42 Added yii\console\controllers\AssetController::deleteSource 2016-08-31 13:06:19 +03:00
AS
665a12b25c Fix typo detaild -> detailed (#12177) [skip ci] 2016-08-17 11:56:25 +03:00
Alexander Makarov
496de65ee2 Fixes #12053: ./yii migrate/create was generating wrong code when using bigPrimaryKey 2016-08-05 01:09:55 +03:00
Alexander Makarov
9b1b4fc5fa Added missing phpdoc 2016-07-30 00:02:51 +03:00