Carsten Brandt
73a9c48058
added tests for #9108
9 years ago
Klimov Paul
f48f63ecf5
`VarDumperTest` fixed
9 years ago
Klimov Paul
16e1e8fe28
Fallback for objects at `yii\helpers\VarDumper::export()` advanced
9 years ago
Nikola Kovacs
316e95b81d
Remove length from SchemaBuilderTrait::text.
...
close #9307
9 years ago
Carsten Brandt
56902298b4
fixed wrong expectation in QueryBuilder test
9 years ago
Carsten Brandt
0d778d0570
adjusted querybuilder tests to match implementation
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
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
9 years ago
Carsten Brandt
854e186210
fixed caching issue with UrlManager::createUrl
...
this fix will skip the cache in case we encounter a situation which can
not easily be cached.
fixes #9091
9 years ago
Lorenzo Milesi
a6fc02345e
FileValidator->getSizeLimit: check also php's post_max_size
...
- return the lowerest of `post_max_size` or `upload_max_filesize`
- Raised warning for misconfigured PHP
close #8373
9 years ago
Alexander Makarov
310f9152e1
Fixes #9268 : Improved display of boolean parameters in logged SQL queries
9 years ago
Alexander Makarov
357bce51bb
Tests for #9006
9 years ago
freezy
6a4436f95b
[ Fixes #9177 ] Password Hash Cost setting for Security component
9 years ago
zetamen
df6f270a0e
Fixes #9161 : Fixed `yii\web\Request` ignore `queryParams` when resolve request
9 years ago
Alexander Makarov
8e1d982da4
Cleanup, added ->unique(), changelog
9 years ago
Matvey Vasenin
da941a7675
Improved `SchemaBuilder` implementation
9 years ago
Matvey Vasenin
b456f699cc
Implemented `SchemaBuilder`
9 years ago
Carsten Brandt
2872365000
added test case for #8918
9 years ago
Carsten Brandt
f37c6ddd64
well, just drop this...
...
this test does not help much anyway. it is still tested for false in strict mode.
9 years ago
Carsten Brandt
d8bbe2f693
fixed BC compatibility test break for php7
9 years ago
Carsten Brandt
cd6121547d
skip memcache on php 7
...
fixes #8975
9 years ago
Carsten Brandt
0858d0a834
added test for querybuilder select
...
close #8895
9 years ago
Carsten Brandt
bda90b6ad3
added another test for #8848
...
close #8850
9 years ago
pana1990
6ab64c9b35
Add test for #8848
9 years ago
Alexander Makarov
372ff87ee4
Test for #8228
9 years ago
Carsten Brandt
d0c6cb7700
abort removing duplicate records when pk is not in result set
...
in this cases it does not make sense to remove duplicates as the result is not on record level anymore.
This could be the case after GROUP BY has been applied.
fixes #8772
9 years ago
Klimov Paul
d9d1fceef6
Unite test for `yii\web\DbSession` added
9 years ago
Carsten Brandt
879911810f
added test for createTable and alterTable
...
test for issue #8627
close #8628
9 years ago
Carsten Brandt
9cc0e5d89d
even more 32bit friendly test
...
issue #8584
9 years ago
Carsten Brandt
8e44674e7b
fixed another test to work on 32bit
...
issue #8584
9 years ago
Carsten Brandt
ab9326dd26
fixed test for 32bit systems
...
fixes #8584
9 years ago
Klimov Paul
72f9e63e10
Table schema auto refreshing on DDL added to `yii\db\Command`
9 years ago
Klimov Paul
fb0062114e
Method `yii\db\Schema::refreshTableSchema()` added
9 years ago
Klimov Paul
0d48f1041e
Fixed `yii\db\Command::getRawSql()` unable to parse params specified without colon (':')
9 years ago
Klimov Paul
a849e815df
Fixed `yii\db\ActiveQuery` produces incorrect SQL for aggregations, when `sql` field is set
9 years ago
Klimov Paul
0874ffac38
Fixed `yii\helpers\Html::activeTextarea()` does not allow value overriding via options
9 years ago
Carsten Brandt
aa5887fec7
added missing use statement to fix #8572
...
- added unit tests for timestamp behavior and insert with expression
- fixed issue #8572
close #8596
9 years ago
Carsten Brandt
8eaacd7320
added comment to datevalidator test
...
issue #8584
9 years ago
Alexander Makarov
a003a8fb48
Fixed broken postgresql test schema
9 years ago
Klimov Paul
bc6cc9bfce
Unit test for `yii\data\Pagination` added
9 years ago
Klimov Paul
51a442d6c8
Fixed `yii\db\ActiveRecord` does not updates attribute specified at `optimisticLock()` after save
9 years ago
John Was
a63fc2ff59
properly quote sequence name in Schema::getLastInsertId()
...
fixes #8483
close #8515
9 years ago
Klimov Paul
0f04af1af9
Added support to automatically set the `maxlength` attribute for `Html::activeTextArea()` and `Html::activePassword()`
9 years ago
Klimov Paul
0a7191dbfe
Preserving of the named key classes at `yii\helpers\Html::addCssClass()` provided
10 years ago
Klimov Paul
41f6a6e558
Specification for 'class' and 'style' in array format added to `yii\helpers\Html`
10 years ago
Carsten Brandt
a73ce736ee
improved unit test for date formatter
10 years ago
Carsten Brandt
3c2bd76236
allow negative dates for date formatter
...
fixes #8451
10 years ago
Carsten Brandt
c1fcd2956b
added unit test for issue #8217
...
close #8217
10 years ago
John Was
94acb2e126
add unit tests to check lastInsertId
10 years ago
John Was
01345874a3
add working QueryBuilder test for Oracle
10 years ago