15 Commits

Author SHA1 Message Date
e4d9ed5182 code style fix 2016-03-09 10:17:41 +02:00
97bc4e0567 Fixed wrong case in method calls 2016-02-16 13:53:53 +03:00
43ce4e9192 Fixes #6876: Fixed RBAC migration MSSQL cascade problem 2015-10-21 00:07:11 +03:00
7b12f59fa9 Fixed phpdoc in RBAC migration 2015-09-27 19:41:58 +03:00
b647bac451 Schema is never used 2015-09-24 12:44:20 +02:00
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
9ae80e3a94 Update sintax 2015-07-09 18:29:17 +02:00
b8cb5e2a28 Fixes #4263: Added migration and SQL schema files for yii\log\DbTarget 2014-11-06 23:22:26 +03:00
8fa4899e02 use utf8_unicode_ci instead of utf8_general_ci
fixes #5119
2014-09-22 12:46:22 +02:00
0edd8bc65a Fixed missing and incorrect phpdoc 2014-07-25 17:26:35 +04:00
5f4801874c Update schema-mssql.sql
MSSQL syntax fix
2014-07-25 16:46:53 +04:00
e0b701bb87 Added SQL files for RBAC back 2014-05-07 20:49:03 +04:00
ef4d9683ce Fixed RBAC migration for SQLite 2014-05-07 00:52:56 +04:00
905e39ede9 RBAC migration is now aware of custom table names, speeded up RBAC tests 2014-05-07 00:19:33 +04:00
42c566935e Fixes #2913: RBAC DbManager is now initialized via migration 2014-05-06 14:59:40 +04:00