Angel Guevara
6b6fa96319
Fix #11252 use strict comparison on hasAttribute()
...
close #11256
8 years ago
Carsten Brandt
bcc19e97cb
added note about Oracle DB connection charset
...
close #11387
8 years ago
Carsten Brandt
7fb447506d
fix mixed case column names for unique indexes in postgres
...
fixes #10613
8 years ago
Laszlovl
0f640c7138
Make sure inverseOf relations are also populated during dynamic relational queries
...
Refs #6347
8 years ago
Robert Korulczyk
099b364b14
Fixed #9574 : Implicit run ColumnSchemaBuilder::null() when default value is set to null. ( #11813 )
8 years ago
Robert Korulczyk
104712103b
Fixes #11693 : Handle QueryBuilder::batchInsert() calls with no data to insert. ( #11812 )
8 years ago
Carsten Brandt
4e3c9e4a98
fixed scalar value for IN condition
...
fixes regression from 2.0.8 #10961
fixes #11536
8 years ago
Carsten Brandt
e4dc2026bc
note about JOIN syntax
...
fixes #7549
8 years ago
Ricardo Pérez
33dfddd0c2
Fixes #8644 : Fixed trying to ENABLE/DISABLE TRIGGER ALL on a view in PostgreSQL
8 years ago
Thiago
bafc8b3325
Fixes #10422 , #9574 : New proposal fix for ColumnSchemaBuilder not null column
...
* Added ability to explicitly set column nullability #10422
* Removed isNull property.
* add since tag.
8 years ago
Alexander Makarov
7cea46bcb4
Changed SQLite fix #11652 according to https://github.com/yiisoft/yii2/pull/11653#issuecomment-224016289
8 years ago
Boudewijn Vahrmeijer
0a60466729
Fixes #11527 : Fixed `bigPrimaryKey()` for SQLite
8 years ago
Nikola Kovacs
9d327baa8b
coding style fixes
8 years ago
Evgeniy Tkachenko
dbb54f986c
Updated phpDoc of scalar
8 years ago
SilverFire - Dmitry Naumenko
a23cbda185
Code style fixed
8 years ago
andrey-mokhov
bde00be202
ColumnSchemaBuilder can not work with custom types
...
In our project we use trait with custom types, example:
```php
trait MigrationToolTrait
{
protected function dateTimeWithTZ ($precision = null)
{
if ('pgsql' === $this->db->driverName) {
return $this->getDb()->getSchema()->createColumnSchemaBuilder(sprintf('timestamp(%d) with time zone', $precision));
}
return $this->dateTime($precision);
}
}
```
usage:
```php
class m160516_161900_init
{
use MigrationToolTrait;
public function safeUp ()
{
$this->createTable('testing', [
'id' => $this->primaryKey(),
'startDate' => $this->dateTimeWithTZ()->notNull()->defaultExpression('now()'),
]);
}
public function safeDown ()
{
$this->dropTable('testing');
}
}
```
In version 2.0.8 MigrateController generate notice:
PHP Notice 'yii\base\ErrorException' with message 'Undefined index: timestamp(0) with time zone' in vendor/yiisoft/yii2/db/ColumnSchemaBuilder.php:366
We offer our change to fix it.
8 years ago
mshutov
bb35fda6e9
Update Migration.php ( #11605 )
...
Typo in doc for safeDown
8 years ago
Alexander Makarov
4d809af0ff
Fixed `@since` tag
8 years ago
Alexander Makarov
94d0bd9ae7
Fixed method name
8 years ago
Alexander Makarov
27866bf9d6
Changed name to append(), fixed phpdoc, added changelog
8 years ago
Chris Harris
66eabda770
Fixes #11195 : Added ability to append custom string to schema builder column definition
8 years ago
Alexander Makarov
5210fc8e42
Fixes #11532 : Fixed casting of empty char value to `null` resulting in integrity constraint violation for not null columns
8 years ago
Paul Klimov
6b607d078f
#11498 : Fixed unable to saved serialized object into PostgreSQL binary column ( #11499 )
...
#11498 : Fixed unable to saved serialized object into PostgreSQL binary column
9 years ago
SSiwek
5fc46d900b
Moved setting of isPrimaryKey #11484
9 years ago
Carsten Brandt
731769241b
release version 2.0.8
9 years ago
SSiwek
5f8881cfbd
#11428 (oci) speedup SQL SELECT in findColumns
9 years ago
Carsten Brandt
edd6e719bb
added missing since annotations and removed duplicate line
9 years ago
Carsten Brandt
627233715b
proper `@since` annotations
9 years ago
Carsten Brandt
4411a74ebd
proper fix for #9425 , adjust changes from #11363
...
includes tests and fix that works in all cases.
9 years ago
SilverFire - Dmitry Naumenko
e2e4f76229
Updated SqliteQueryBuilderTest to work with Composite in conditions
...
Updated code style, CHANGELOG
9 years ago
Sam Mousa
baab8d6a68
QueryBuilder now supports `Traversable` objects for `IN` clauses.
9 years ago
raoul
60f6ecf063
`yii\db\BaseActiveRecord` now triggers event EVENT_AFTER_REFRESH` after a record is refreshed
...
fixes #9604
close #10867
9 years ago
Carsten Brandt
52e23e0317
fix issue with composite key in combination with join
...
fixes #10201
fixes #9047
close #9895
9 years ago
Sam
fc8708b712
Added missing function to ActiveRecordInterface interface.
...
close #9854
9 years ago
Lennart van den Dool
f8a844a90f
Query helper method for filter values containing operators
...
Basic implementation proposal for yiisoft/yii2#2022
Shortcomings/todo's:
* filtering on non-scalars (where IN statements) not supported
* Numeric properties with a corresponding validation rule will yield
errors when they contain an alphanumeric operator. These properties'
rules should be defined as 'string' or 'safe'.
* no implementation example in Gii code (yet).
close #8505
9 years ago
Carsten Brandt
38d347c9f5
fix quoting column name in case of quoted table name
...
column name was not quoted if a table name was used, that was using the
table prefix feature.
fixes #11088
close #11238
9 years ago
SilverFire - Dmitry Naumenko
15432971d6
db/ColumnSchemaBuilder::buildCommentString() returns empty string by default
9 years ago
SilverFire - Dmitry Naumenko
33d51825c0
Fixed order of column options in curbid\ColumnSchemaBuilder
9 years ago
SilverFire - Dmitry Naumenko
1aa2f1d927
Removed sqlite/ColumnSchemaBuilder::comment() method override
9 years ago
SilverFire - Dmitry Naumenko
0fe27b9d3b
Refactored code in PR #9441
9 years ago
Chris Harris
5316576361
Fixes `after()` column string builder ( #11362 )
9 years ago
Alexander Makarov
2c325fbd48
Added `@since`, adjusted changelog #9425
9 years ago
Alexander Makarov
df6cdf7ad5
Fixed code style
9 years ago
PowerGamer1
73eb62a3cd
DBMS specific workarounds for unsupported SQL92 form of `SELECT EXISTS()` ( #11369 )
9 years ago
PowerGamer1
806eb57990
Fixes #9425 : ActiveQuery::exists() should generate SELECT EXISTS() ( #11363 )
9 years ago
A Slatius
293feeb522
Update QueryInterface.php
...
Missing closing bracket in OR condition example
9 years ago
Ivaylo Ushev
5921865459
Fixed : #11270 - Error when link record in one to many relation. ( #11301 )
...
Fixed : #11270 - Error when link record in one to many relation.
9 years ago
Alexander Makarov
48a2df5d52
Fixes #11283 : `ActiveRecord::unlink()` is not setting FK to `null` before deleting itself anymore
9 years ago
Chris Harris
e8c3f6cc6f
Fixing tests
9 years ago
Chris Harris
5c4001d84b
Schema Builder Patterns Excel document in /docs folder (temp storage).
...
Fixed some schema builder patterns.
Added more information to upgrade docs.
9 years ago