10 Commits

Author SHA1 Message Date
187c314d01 better fix for test break b9880f32474bf30bd7662ee7f3465a0e58a2be2b 2016-02-17 14:27:10 +01:00
4e4fb02264 Fixed QueryBuilterTest for PgSQL 2016-02-17 07:42:04 +02:00
316e95b81d Remove length from SchemaBuilderTrait::text.
close #9307
2015-08-05 22:50:46 +02:00
56902298b4 fixed wrong expectation in QueryBuilder test 2015-08-04 12:58:03 +02:00
0d778d0570 adjusted querybuilder tests to match implementation 2015-08-04 12:15:00 +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
7150e830d9 do not use reserved php words as function in schemabuilder
there is a reason for them to be reserved, we should not add such workarounds to still use them.

close #9283
2015-08-03 11:21:58 +02:00
da941a7675 Improved SchemaBuilder implementation 2015-07-08 15:40:09 +03:00
b456f699cc Implemented SchemaBuilder 2015-07-08 15:38:21 +03:00
6949992246 Simplified tests directory structure a bit 2015-04-16 12:10:01 +03:00