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] $ _
- 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(),
]);
```
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 <----
```