Carsten Brandt
844eacba26
Update BaseMigrateController.php
...
make sure console arguments are recognized as array.
7 years ago
Carsten Brandt
6ec6f8d76c
moved include file logic to separate method
7 years ago
Carsten Brandt
5288577221
make migrationPath accept an array
7 years ago
Tobias Munk
deb1def9d3
added alias syntax support
...
fixes #13356
fixes #13359
7 years ago
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.
7 years ago
Carsten Brandt
4b9e48b8dc
improved docs: link term "path alias" to the guide
7 years ago
SilverFire - Dmitry Naumenko
f7c9e6b852
Enhanced FixtureController::getFixtureRelativeName()
...
Updated CHANGELOG
7 years ago
Skiba Max
51dd58cf34
Fixed #13551 : loading fixtures in subdirectories
7 years ago
lynicidn
96dae1cebc
file will not loaded
...
https://github.com/yiisoft/yii2/tree/master/framework/test
8 years ago
Alexander Makarov
70cd75c84e
Fixes #13226 : `yii cache` command now warns about the fact that it's not able to flush APC cache from console
8 years ago
Vladimir Reznichenko
6da1ec6fb2
Fixes #13845 : `mt_rand()` is not used instead of `rand()` in `yii\captcha\CaptchaAction` + minor code improvements
8 years ago
Sam
9459eaa277
Fixes #10372 : Fixed console controller including complex typed arguments in help
8 years ago
Daniel Gómez Pan
73ddf2e65e
Fixes #13670 : Fixed alias option from console when it includes `-` or `_` in option name
8 years ago
SilverFire - Dmitry Naumenko
1dc4618f3d
Fixed `MessageConstroller::saveMessagesToDb()` to work on different DBMS correctly
...
Closes #13494
8 years ago
SilverFire - Dmitry Naumenko
e9a96ee834
Replced InvalidParamException with \yii\console\Exception in Request::resolve()
8 years ago
SilverFire - Dmitry Naumenko
86b08e29d2
Enhanced `yii\console\Request::resolve()` to prevent passing parameters, that begin from digits
...
Closes #8641
8 years ago
Bizley
59801958fe
example corrected ( #13555 )
8 years ago
Bizley
1749c46c5d
Fixes #11502 : Fixed `yii\console\controllers\MessageController` to properly populate missing languages in case of extraction with "db" format
8 years ago
Carsten Brandt
c19b2f7dc8
release version 2.0.11
8 years ago
Klimov Paul
862a5dd6b7
Added support for field `yii\console\controllers\BaseMigrateController::$migrationNamespaces` setup from CLI
8 years ago
Klimov Paul
25a7ed60e7
Docs about namespaced migrations fixed
8 years ago
Carsten Brandt
7c98000391
Update Controller.php
8 years ago
Dmitry Naumenko
2853dcbad7
Update FixtureController.php
8 years ago
Sidney Lins (slinstj)
9173656b53
Improves error message for invalid namespace in FixtureController
8 years ago
Pavel Ivanov
8060300bf4
Small optimization of yii\console\Request::resolve()
8 years ago
Pavel Ivanov
4db3bcd64c
Fixes #13277 : Invalid parsing of `--` in CLI
8 years ago
Klimov Paul
194577c55e
Code style fix
8 years ago
Daniel Gómez Pan
b985ea3476
Fix #13108 : Negative integer parameter causes "Unknown alias" error w… ( #13220 )
...
* Fix #13108 : Negative integer parameter causes "Unknown alias" error when you execute command console
* Fix #13108 : Fix small issues
* Update Request.php
change order
8 years ago
Carsten Brandt
187c44e43e
implement suggestion for unknown command in console application
...
suggestion is based on two principles:
- first suggest commands the begin with the unknown name, to suggest
commands after accidentally hitting enter
- second find similar commands by computing the levenshtein distance
which is a measurement on how many changes need to be made to convert
one string into another. This is perfect for finding typos.
8 years ago
Carsten Brandt
1d3495d84d
Alternative implementation for Unknown command suggestions
...
alternative implementation for #12661 , proof of concept, does not
include filtering by similarity yet.
issue #12659
8 years ago
SilverFire - Dmitry Naumenko
4454d05410
Added ZSH completion, moved scripts to a separate directory
8 years ago
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
8 years ago
SG5
1141fc81a7
Fixes #12735 : Fixed `yii\console\controllers\MigrateController` creating multiple primary keys for field `bigPrimaryKey:unsigned`
8 years ago
Klimov Paul
18b0dab360
Fixed `yii\console\controllers\AssetController::adjustCssUrl()` breaks URL reference specification (`url(#id)`)
8 years ago
Alexey Rogachev
e705519c5a
Fixes #13071 : Help option for commands was not working in modules
8 years ago
Klimov Paul
1157657cab
Fixed incorrect order of migrations history in case `yii\console\controllers\MigrateController::$migrationNamespaces` is in use
8 years ago
Robert Korulczyk
7a3a342127
Fix errors reported by apidoc extension. ( #12986 )
8 years ago
Robert Korulczyk
450eefaa50
Some phpdoc fixes from scrutinizer.
8 years ago
Robert Korulczyk
cf0952406d
Cosmetic changes in console controller.
8 years ago
evgen
5c3cdd792b
fix code style
8 years ago
evgen
3d3d69e3a8
returned back `orderBy()`
8 years ago
evgen
50062d0b9f
some change
8 years ago
evgen
c7c8f09827
ksort and reverse to uksort
8 years ago
evgen
481932e238
add migration name to sort
8 years ago
Evgeny
59f7335b8f
change getMigrationHistory
8 years ago
Alexander Zlakomanov
b48b1a0657
Fixes #12904 : Fixed lowercase table name in migrations
8 years ago
diezztsk
e30e53843a
Changelog update. Fixed phpDoc comment.
8 years ago
Robert Korulczyk
4aa935e69e
Fixes #12055 : Changed `boolean` to `bool` and `integer` to `int` in phpdoc
8 years ago
diezztsk
99f1d04421
Extract default help header to protected method.
8 years ago
MKiselev
4f89265fff
Fixes #12748 : Migration generator now tries to fetch reference column name for foreignKey from schema if it's not set explicitly
8 years ago