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
SilverFire - Dmitry Naumenko
4454d05410
Added ZSH completion, moved scripts to a separate directory
8 years ago
Carsten Brandt
beb140446b
added test for helpcontroller list action
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
Alexander Zlakomanov
b48b1a0657
Fixes #12904 : Fixed lowercase table name in migrations
8 years ago
Boudewijn Vahrmeijer
8705219005
Added tests for HelpController ( #12908 )
8 years ago
Klimov Paul
60307c118b
code style fix
8 years ago
Klimov Paul
8c39b1cbfa
code style fix
8 years ago
Paul Klimov
8aa0e85a07
Add migration namespace support ( #12511 )
...
namespace support added to `BaseMigrateController`
8 years ago
Daniel Gomez Pan
ae42d7b281
Fix #12423 Fix bug migration tool when creating fields with brackets in comment
8 years ago
Klimov Paul
d73d155e43
code style fix
8 years ago
Klimov Paul
db15c50557
Fixed `yii\console\controllers\AssetController` looses bundle override configuration, which makes it external one
8 years ago
Klimov Paul
8c9bafcc06
Fix unit test on HHVM
8 years ago
Klimov Paul
56cc97ae42
Added `yii\console\controllers\AssetController::deleteSource`
8 years ago
Nikola Kovacs
84124bec4f
Fix grammar in migration template docblocks. ( #12148 )
...
Fix typo in test file's name.
8 years ago
Daniel Gómez Pan
83496853c8
Fixes #11461 : Fixed migration tool error when create migrate with comma in defaultValue
8 years ago
Angel Guevara
8c240ed067
Fixes #11683 : Fixed fixture command to work with short syntax. `yii fixture "*, -User"` should be used instead of `yii fixture "*" -User`
8 years ago
Robert Korulczyk
5992eea571
Fixes #11808 : `_table` and `_column` suffixes are now required when generating migration
8 years ago
Angel Guevara
fdbf7d85a1
Simple tests ( #11606 )
...
* method to simplify migrate/create tests
* use new assertion for all migration/create tests
* move the expected files to test/data/console
8 years ago
Andrii Vasyliev
b4995c3990
Fixed `yii\console\Application::runAction` to not to corrupt response exit code when action returns Response object
...
close #10235
9 years ago
Angel Guevara
b923adf75c
Enh: Support for useTablePrefix parameter in migrate command
...
Fixes #11166 : migrate command new option `useTablePrefix`
9 years ago
Angel Guevara
49aec24ae1
Enh: Migrate command now supports foreign keys
...
Fixes #11207 : migrate command can create foreign keys
9 years ago
Angel Guevara
3cbd64547a
Additional phpdoc for #11187
9 years ago
Alexander Makarov
4cb0c1b55c
Fixed tests
9 years ago
Daniel Gomez Pan
1ce21cd927
WIP #10840 : rename key 'alias' to '_aliases'
9 years ago
Daniel Gomez Pan
03cb361a59
Fixed #10969 : add more tests
9 years ago
Daniel Gomez Pan
921b102961
Fixed #10969 : generator migration tool not works with decimal params in column
9 years ago
Vladimir Khramov
8db7df9352
replace all occurrences of migration class
9 years ago
Daniel Gomez Pan
26ff223855
WIP #10840 : add display shorcuts in help command
9 years ago
Daniel Gomez Pan
edfdb54430
WIP #10840 : rename shortCuts() to optionAliases()
9 years ago
Daniel Gomez Pan
a0a44c382a
WIP #10840
9 years ago
Carsten Brandt
42b8569846
Revert DI injection via controller action method signature
...
reverts b7020065c
and related commits.
reverts implementation of #9476
For reasons, see discussion https://github.com/yiisoft/yii2/issues/9476#issuecomment-179749039
9 years ago
Sam Mousa
18fc8db32f
Fixes #10372 : Fixed console controller including DI arguments in help
9 years ago
Revin Roman
229f9a8364
Support wildcard category name in export messages config #10359
9 years ago
Daniel Gomez Pan
c5eebe1a00
Fix test for migration
9 years ago
Daniel Gomez Pan
0b950f4039
Fix phpdocs and small bug
9 years ago
Daniel Gomez Pan
2a1764f97a
Enhancements for #9465
9 years ago
Alexander Makarov
76e8556d34
#9465 better naming, code polish, changelog, docs wording
9 years ago
Daniel Gomez Pan
9afd240ab6
Fixes #9465 : ./yii migrate/create now generates code based on migration name and --fields
9 years ago
mdmunir
3accf52ddb
fix #9823
9 years ago
mdmunir
b7020065c8
Fixes #9476 : Added DI injection via controller action method signature
9 years ago
Klimov Paul
72ec914992
`yii\console\controllers\MessageController` improved allowing extraction of nested translator calls
10 years ago
Klimov Paul
bc735bb390
`FileHelper` usage added to `AssetControllerTest`
10 years ago
Alexander Makarov
6949992246
Simplified tests directory structure a bit
10 years ago