Daniel Gomez Pan
1989494faa
Console command aliases enhancements
9 years ago
Daniel Gomez Pan
9088d49990
fix name method
9 years ago
Carsten Brandt
191f2a4943
fixed phpdoc type names
9 years ago
Daniel Gomez Pan
705edfff5a
Add aliases for core commands
9 years ago
Daniel Gomez Pan
c8a8bfb093
WIP #10840 : add @since [skip ci]
9 years ago
Daniel Gomez Pan
29b76e2e8c
WIP #10840 : add phpdocs [skip ci]
9 years ago
Daniel Gomez Pan
26ff223855
WIP #10840 : add display shorcuts in help command
9 years ago
Alexander Makarov
bf3d8fe40f
Use $arr[] = 'x' instead of array_push
9 years ago
Alexander Makarov
97bc4e0567
Fixed wrong case in method calls
9 years ago
Carsten Brandt
f620f4de90
phpdoc fixes
9 years ago
Carsten Brandt
5db772ef7b
cleanup console namespace changes
9 years ago
Pavel Solomienko
2300e9cbe5
Update BaseMigrateController.php
9 years ago
Revin Roman
62fd874413
Update phpdoc comments and changelog
9 years ago
Revin Roman
c22a9c0d84
Method `isIgnoredCategory` renamed to `isCategoryIgnored` and update phpdoc comments
9 years ago
Revin Roman
229f9a8364
Support wildcard category name in export messages config #10359
9 years ago
Vovan-VE
d1d1106179
MessageController output DB lost EOL when unused messages unchanged
...
When storing messages to DB and neither `removeUnused`, nor `markUnused`
is enabled, then output about obsoleted messages won't say anything
about update results and lost EOL:
[/path] $ ./yii message/extract ...
Extracting messages from <file>...
Extracting messages from <file>...
Inserting new messages...saved.
Updating obsoleted messages...[/path] $ _
Patched to explain what happened and fix EOL:
Inserting new messages...saved.
Updating obsoleted messages...kept untouched.
[/path] $ _
9 years ago
SilverFire - Dmitry Naumenko
cd87d67f34
Global DOCS update: ~~~ replaced with ```
9 years ago
Alexander Makarov
08256b05ec
Adjustments for #8329
9 years ago
Vadym Chenin
ccfd9cb536
Fixes #8329 : Added support of options for `message` console command
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
f03808a7c8
Additional fixes 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
Alexander Makarov
5cd50fdb1d
Fixes #10193 : simplified ./yii serve by removing lock file and extra checks
9 years ago
Mehdi Achour
06d499ab02
#10158 : Accept arrays for 'js' as well
...
Also applied @samdark comments on array testing
9 years ago
Mehdi Achour
cf01d5ff92
Use PHP type casting instead of ArrayHelper
9 years ago
Mehdi Achour
8ada653e8e
Fix build failure: Handle arrays in assets command
9 years ago
Alexander Makarov
effc4facda
Used alias instead of relative path in ServeController
9 years ago
Alexander Makarov
9d7db8c7ab
Fixed ServeController phpdoc
9 years ago
Alexander Makarov
3e915903a2
Fixes #10083 : Added wrapper for PHP webserver
9 years ago
Nikita Verkhovin
99c6fb23a2
Added total applied migrations to final report
9 years ago
Alexander Makarov
1b3770fd21
Use === instead of == where possible
9 years ago
Alexander Makarov
b65bfad44d
Simplified regular expressions
9 years ago
Alexander Makarov
5ab4f0f090
Better quotes usage in strings
...
- Use single quote where interpolation isn't necessary
- Use interpolation when it's better than concatenation
9 years ago
Alexander Makarov
3a207b7559
Fixes #9323 : Fixed `yii\console\controllers\MessageController` not using database connection specified in config
9 years ago
Alexander Makarov
a6b8a30998
Removed unused "use"
9 years ago
Carsten Brandt
681db52ba6
refactored SchemaBuilder
...
- rename class to ColumnSchemaBuilder as this is more appropriate
- changed internal organisation to match how the rest of schema related classes work
- the ColumnSchemaBuilder is now created the same way as QueryBuilder is
- removed static call magic and method annotations, now real methods are called as they are
- the whole code works on objects in a db context now instead of setting database connection in global state
- trait is now used by Migration by default but can be used in other contexts as well
Migration usage is now as follows:
```php
$this->createTable('example_table', [
'id' => $this->primaryKey(),
'name' => $this->string(64)->notNull(),
'type' => $this->integer()->notNull()->defaultValue(10),
'description' => $this->text(),
'rule_name' => $this->string(64),
'data' => $this->text(),
'created_at' => $this->datetime()->notNull(),
'updated_at' => $this->datetime(),
]);
```
9 years ago
Carsten Brandt
a2568d1ec8
updated some comments and `@since` annotations
9 years ago
Carsten Brandt
6d9fe671de
various code style and whitespace adjustments
9 years ago
Carsten Brandt
9aac3966a6
fixed typo in error message
...
#9154
9 years ago
Alexander Pletnev
9ab57780ab
close #9149
9 years ago
Alexander Makarov
c115c677e6
Fixed #9141 : Fixed docs for migrate/history
9 years ago
Matvey Vasenin
da941a7675
Improved `SchemaBuilder` implementation
9 years ago
Alexander Mohorev
39cb131984
Spelling and sc fixes
9 years ago
Alexander Makarov
63f9ec4da6
Fixed formatting
9 years ago
Alexander Mohorev
d34d890a32
PSR-2 if-else statement
9 years ago
Alexander Mohorev
ae42a054bb
PSR-2 spaces, commas, etc
9 years ago
Marius Ebel
fff61bf99b
- Reworked order of parameters in order to keep backwards compatibility
...
- Update statement of unused messages in DB now depends on $markUnused parameter
9 years ago
Marius Ebel
0dcb50db5e
- i18n MessageController now supports config parameter 'markUnused' that turns adding @@s either on or off
9 years ago