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
8260cfa4ea
Compare with null instead of isset
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
jeicd
f0deb1cee8
Convert tabs to spaces
9 years ago
mdmunir
d2baecbda5
fix #9823
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
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
b53f50a762
Reverted #9140
...
See discussion at ef27d820d2
9 years ago
Alexander Makarov
ef27d820d2
#9140 : better fix for IDEs
9 years ago
Alexander Makarov
c115c677e6
Fixed #9141 : Fixed docs for migrate/history
9 years ago
matthewyang
fed6f35627
remove redefined parent property
9 years ago
Carsten Brandt
a5c92eb4cb
register `STDIN`, `STDOUT`, and `STDERR` if not defined by PHP
...
this ensures that they are defined if needed and reduces redundant
code in the entry script.
close #6853
9 years ago
Matvey Vasenin
da941a7675
Improved `SchemaBuilder` implementation
9 years ago
Alexander Mohorev
68c30c1034
Replace aliases of functions
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
Alexander Mohorev
fcb45848dd
The formatting value must be array
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
Philippe Gaultier
4851d7f9e3
Fixes #8574 : Added `yii\console\controllers\MessageController` support .pot file creation
9 years ago
Carsten Brandt
47bcd020ff
fixed bug in console controller
...
pass correct action name to options when $id is empty (default action)
9 years ago
Klimov Paul
adb0460ee1
`yii\console\controllers\MessageController` now sorts created messages, even if there is no new one, while saving to PHP file
10 years ago
Klimov Paul
72ec914992
`yii\console\controllers\MessageController` improved allowing extraction of nested translator calls
10 years ago
Klimov Paul
a0b5652673
`yii\console\controllers\MessageController::saveMessagesToDb()` updated to use `yii\db\Schema::insert()`
10 years ago
Carsten Brandt
ef662b57be
added missing `@since` annotations
10 years ago
Sergey Gonimar
3872c6c565
Fix migrate/down order
...
Migrations were applied at the same time. This cause invalid sort order while downgrade.
Command `yii migrate `
Output:
```
Yii Migration Tool (based on Yii v2.0.4-dev)
Total 2 new migrations to be applied:
m150402_075534_initial
m150402_075544_feedback
```
Command `yii migrate/down 2`
```
Yii Migration Tool (based on Yii v2.0.4-dev)
Total 2 migrations to be reverted:
m150402_075534_initial
m150402_075544_feedback
```
In databasse
```
"m000000_000000_base";1428382302
"m150402_075534_initial";1428388855 <----
"m150402_075544_feedback";1428388855 <----
```
10 years ago
Paul Klimov
378937f8d5
`yii\console\controllers\AssetController` provides dependency trace in case bundle circular dependency detected
10 years ago
Klimov Paul
97c0ffc836
Creating target dir at `yii\console\controllers\AssetController::buildTarget()` refactored
10 years ago
Klimov Paul
e9ecdf88f9
Fixed `yii\console\controllers\AssetController` does not create missing folders for the target bundles
10 years ago
Alexander Makarov
1713a99c79
Fixes #7924 : Migrations in history are now ordered by time applied allowing to roll back in reverse order no matter how these were applied
10 years ago
Alexander Makarov
b7a29e38d9
Fixes #6895 : Added `ignoreCategories` config option for message command to ignore categories specified
10 years ago
Carsten Brandt
08e0143c16
created Console::wrapText() to imrove console help output on small screens
10 years ago
callmez
f60da03e07
Fixes #7562 , fixes #6841 : `yii help` now lists all sub-commands by default
10 years ago
Paul Melekhov
86891f9f82
Fixes #7358 : Fix trimming PHPDoc prefix with TAB indent in `yii\console\Controller::parseDocCommentSummary()`
10 years ago
Carsten Brandt
2b6de9665e
adjusted docs about #7347
10 years ago
lynicidn
84052d15df
Used yii\di\Instance::ensure() in MigrateController instead of doing the same without it
10 years ago