Commit Graph

69 Commits

Author SHA1 Message Date
Robert Korulczyk
31e321b9b2 Remove unused imports. (#14096) 2017-05-01 20:26:15 +02:00
Klimov Paul
dee88787fc compatibility with PHPUnit 6.x added 2017-04-13 14:49:43 +03:00
Sam
9459eaa277 Fixes #10372: Fixed console controller including complex typed arguments in help 2017-03-15 15:47:21 +03:00
Alexander Makarov
3f8e8a89eb Used more specific unit test assertions in framework tests 2017-03-14 09:45:31 +03:00
gagatust
6397791513 Fixed whitespaces to match code style [skip ci] 2017-03-14 09:42:13 +03:00
Carsten Brandt
ff4cde18d4 Merge branch 'master' into feature/docker-testing 2017-03-06 15:50:56 +01:00
Daniel Gómez Pan
73ddf2e65e Fixes #13670: Fixed alias option from console when it includes - or _ in option name 2017-02-28 16:39:03 +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
SilverFire - Dmitry Naumenko
e9a96ee834 Replced InvalidParamException with \yii\console\Exception in Request::resolve() 2017-02-21 08:24:15 +02:00
SilverFire - Dmitry Naumenko
86b08e29d2 Enhanced yii\console\Request::resolve() to prevent passing parameters, that begin from digits
Closes #8641
2017-02-20 23:17:40 +02:00
Nikolay Oleynikov
323568c2e9 Remove trailing spaces from sources and tests (#13621) [skip ci] 2017-02-19 17:34:22 +03:00
Tobias Munk
9f95f71572 added groups to tests 2017-02-16 16:46:10 +01:00
Tobias Munk
ec8daa0d77 added db group to test 2017-02-16 15:42:24 +01:00
Robert Korulczyk
4c46c6a096 Improve messages test on HHVM. (#13520) 2017-02-06 09:54:13 +01: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
Pavel Ivanov
4db3bcd64c Fixes #13277: Invalid parsing of -- in CLI 2016-12-31 16:31:07 +02:00
Klimov Paul
6211f9c030 MigrateControllerTestTrait fix for HHVM 2016-12-26 16:02:22 +02:00
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
2016-12-17 21:30:36 +02:00
Carsten Brandt
7fead4f011 Merge pull request #12959 from yiisoft/bash-completion
Added bash completion file for ./yii commands
2016-12-03 01:25:06 +01:00
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.
2016-12-03 01:17:50 +01:00
SilverFire - Dmitry Naumenko
4454d05410 Added ZSH completion, moved scripts to a separate directory 2016-12-03 00:36:40 +01:00
Carsten Brandt
beb140446b added test for helpcontroller list action 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
Alexey Rogachev
e705519c5a Fixes #13071: Help option for commands was not working in modules 2016-11-27 16:14:08 +03: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
Alexander Zlakomanov
b48b1a0657 Fixes #12904: Fixed lowercase table name in migrations 2016-11-08 23:39:44 +03:00
Boudewijn Vahrmeijer
8705219005 Added tests for HelpController (#12908) 2016-11-04 15:58:21 +03:00
Klimov Paul
60307c118b code style fix 2016-09-12 14:43:46 +03:00
Klimov Paul
8c39b1cbfa code style fix 2016-09-12 14:41:05 +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
d73d155e43 code style fix 2016-09-09 14:59:11 +03: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
8c9bafcc06 Fix unit test on HHVM 2016-08-31 13:13:39 +03:00
Klimov Paul
56cc97ae42 Added yii\console\controllers\AssetController::deleteSource 2016-08-31 13:06:19 +03:00
Nikola Kovacs
84124bec4f Fix grammar in migration template docblocks. (#12148)
Fix typo in test file's name.
2016-08-12 17:55:43 +03:00
Daniel Gómez Pan
83496853c8 Fixes #11461: Fixed migration tool error when create migrate with comma in defaultValue 2016-07-28 01:15:55 +03:00
Angel Guevara
8c240ed067 Fixes #11683: Fixed fixture command to work with short syntax. yii fixture "*, -User" should be used instead of yii fixture "*" -User 2016-07-07 01:30:06 +03:00
Robert Korulczyk
5992eea571 Fixes #11808: _table and _column suffixes are now required when generating migration 2016-07-04 12:50:37 +03:00
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
2016-05-24 09:35:23 +03:00
Andrii Vasyliev
b4995c3990 Fixed yii\console\Application::runAction to not to corrupt response exit code when action returns Response object
close #10235
2016-04-22 17:24:11 +02:00
Angel Guevara
b923adf75c Enh: Support for useTablePrefix parameter in migrate command
Fixes #11166: migrate command new option `useTablePrefix`
2016-04-06 13:37:37 +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
Angel Guevara
3cbd64547a Additional phpdoc for #11187 2016-03-27 23:38:23 +03:00
Alexander Makarov
4cb0c1b55c Fixed tests 2016-03-25 14:08:56 +03:00
Dmitry Naumenko
857eee2451 Merge pull request #10870 from pana1990/10840-add-shorcuts-console
WIP #10840
2016-03-04 13:53:28 +02:00
Daniel Gomez Pan
1ce21cd927 WIP #10840: rename key 'alias' to '_aliases' 2016-02-27 23:26:34 +01:00
Daniel Gomez Pan
9b94dbfe38 Merge remote-tracking branch 'upstream/master' into 10969-fix-migration 2016-02-26 15:58:17 +01:00