Commit Graph

284 Commits

Author SHA1 Message Date
Alexander Makarov
bf3d8fe40f Use $arr[] = 'x' instead of array_push 2016-02-16 14:35:15 +03:00
Alexander Makarov
97bc4e0567 Fixed wrong case in method calls 2016-02-16 13:53:53 +03:00
Carsten Brandt
f620f4de90 phpdoc fixes 2016-02-07 19:48:13 +01:00
Carsten Brandt
5db772ef7b cleanup console namespace changes 2016-02-06 20:05:14 +01:00
Pavel Solomienko
2300e9cbe5 Update BaseMigrateController.php 2016-01-13 19:33:53 +02:00
Revin Roman
62fd874413 Update phpdoc comments and changelog 2015-12-14 14:56:39 +03:00
Revin Roman
c22a9c0d84 Method isIgnoredCategory renamed to isCategoryIgnored and update phpdoc comments 2015-12-14 14:50:22 +03:00
Revin Roman
229f9a8364 Support wildcard category name in export messages config #10359 2015-12-14 14:04:06 +03:00
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] $ _
2015-12-04 11:43:06 +08:00
SilverFire - Dmitry Naumenko
cd87d67f34 Global DOCS update: ~~~ replaced with ``` 2015-12-02 23:15:28 +02:00
Alexander Makarov
08256b05ec Adjustments for #8329 2015-11-25 06:27:01 +03:00
Vadym Chenin
ccfd9cb536 Fixes #8329: Added support of options for message console command 2015-11-25 06:12:52 +03:00
Daniel Gomez Pan
0b950f4039 Fix phpdocs and small bug 2015-11-24 20:03:09 +01:00
Daniel Gomez Pan
2a1764f97a Enhancements for #9465 2015-11-23 13:33:26 +03:00
Alexander Makarov
f03808a7c8 Additional fixes for #9465 2015-11-20 23:04:29 +03:00
Alexander Makarov
76e8556d34 #9465 better naming, code polish, changelog, docs wording 2015-11-20 22:50:32 +03:00
Daniel Gomez Pan
9afd240ab6 Fixes #9465: ./yii migrate/create now generates code based on migration name and --fields 2015-11-20 22:08:47 +03:00
Alexander Makarov
5cd50fdb1d Fixes #10193: simplified ./yii serve by removing lock file and extra checks 2015-11-20 00:12:59 +03:00
Mehdi Achour
06d499ab02 #10158: Accept arrays for 'js' as well
Also applied @samdark comments on array testing
2015-11-17 10:55:05 +01:00
Mehdi Achour
cf01d5ff92 Use PHP type casting instead of ArrayHelper 2015-11-16 18:16:29 +01:00
Mehdi Achour
8ada653e8e Fix build failure: Handle arrays in assets command 2015-11-16 15:31:20 +01:00
Alexander Makarov
effc4facda Used alias instead of relative path in ServeController 2015-11-06 23:54:00 +03:00
Alexander Makarov
9d7db8c7ab Fixed ServeController phpdoc 2015-11-06 23:51:32 +03:00
Alexander Makarov
3e915903a2 Fixes #10083: Added wrapper for PHP webserver 2015-11-05 22:08:57 +03:00
Nikita Verkhovin
99c6fb23a2 Added total applied migrations to final report 2015-10-27 02:23:21 +06:00
Alexander Makarov
1b3770fd21 Use === instead of == where possible 2015-10-10 01:04:35 +03:00
Alexander Makarov
b65bfad44d Simplified regular expressions 2015-10-10 00:40:25 +03:00
Alexander Makarov
5ab4f0f090 Better quotes usage in strings
- Use single quote where interpolation isn't necessary
- Use interpolation when it's better than concatenation
2015-10-10 00:23:52 +03:00
Alexander Makarov
3a207b7559 Fixes #9323: Fixed yii\console\controllers\MessageController not using database connection specified in config 2015-09-05 01:58:03 +03:00
Alexander Makarov
a6b8a30998 Removed unused "use" 2015-08-04 15:38:31 +03:00
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(),
]);
```
2015-08-03 23:25:50 +02:00
Carsten Brandt
a2568d1ec8 updated some comments and @since annotations 2015-08-02 19:56:49 +02:00
Carsten Brandt
6d9fe671de various code style and whitespace adjustments 2015-08-02 00:27:19 +02:00
Carsten Brandt
9aac3966a6 fixed typo in error message
#9154
2015-07-19 17:42:41 +02:00
Alexander Pletnev
9ab57780ab close #9149 2015-07-19 18:27:24 +03:00
Alexander Makarov
c115c677e6 Fixed #9141: Fixed docs for migrate/history 2015-07-17 14:27:09 +03:00
Matvey Vasenin
da941a7675 Improved SchemaBuilder implementation 2015-07-08 15:40:09 +03:00
Alexander Mohorev
39cb131984 Spelling and sc fixes 2015-06-16 23:53:12 +03:00
Alexander Makarov
63f9ec4da6 Fixed formatting 2015-06-10 13:39:47 +02:00
Alexander Makarov
c0c3fa79af Merge branch '8625-message-controller-mark-unused' of https://github.com/marius7383/yii2 into marius7383-8625-message-controller-mark-unused
Conflicts:
	framework/CHANGELOG.md
2015-06-10 13:33:20 +02:00
Alexander Mohorev
d34d890a32 PSR-2 if-else statement 2015-06-09 00:10:09 +03:00
Alexander Mohorev
ae42a054bb PSR-2 spaces, commas, etc 2015-06-09 00:05:06 +03:00
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
2015-06-08 10:11:15 +02:00
Marius Ebel
0dcb50db5e - i18n MessageController now supports config parameter 'markUnused' that turns adding @@s either on or off 2015-06-08 10:11:13 +02:00
Philippe Gaultier
4851d7f9e3 Fixes #8574: Added yii\console\controllers\MessageController support .pot file creation 2015-05-31 12:40:46 +03:00
Klimov Paul
adb0460ee1 yii\console\controllers\MessageController now sorts created messages, even if there is no new one, while saving to PHP file 2015-05-13 16:08:36 +03:00
Klimov Paul
72ec914992 yii\console\controllers\MessageController improved allowing extraction of nested translator calls 2015-05-13 15:49:00 +03:00
Klimov Paul
a0b5652673 yii\console\controllers\MessageController::saveMessagesToDb() updated to use yii\db\Schema::insert() 2015-04-24 15:34:46 +03:00
Carsten Brandt
ef662b57be added missing @since annotations 2015-04-24 12:09:40 +02:00
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     <----
```
2015-04-07 12:01:09 +05:00