Klimov Paul
75439d367d
Fixed canGetProperty() and canSetProperty() returns false for yii\db\BaseActiveRecord attributes
2016-08-30 17:39:23 +03:00
Klimov Paul
4f7b1b0817
Fixed yii\db\BaseActiveRecord::refresh() may set incorrect oldAttributes values at some cases
2016-08-30 14:42:46 +03:00
SilverFire - Dmitry Naumenko
1e1723a741
Updated PHPDoc in BaseActiveRecord
...
Closes #12349
2016-08-26 22:11:35 +03:00
SilverFire - Dmitry Naumenko
0f568807e5
Updated PHPDoc in ActiveRecordInterface
2016-08-26 22:11:09 +03:00
hAppywAy_
cac514e8e9
Fixes #12293 : Fixed MSSQL Schema::resolveTableNames() when using linked database tables
2016-08-25 23:08:37 +03:00
Roman Grinyov
926a238595
Removed duplicate sentence in docblock ( #12290 ) [skip ci]
2016-08-24 13:31:53 +03:00
Roman Grinyov
f0e999e017
Cosmetic changes ( #12292 ) [skip ci]
2016-08-24 13:10:03 +03:00
Roman Grinyov
434a4ce632
Typos in class docblock ( #12270 )
2016-08-23 22:23:30 +02:00
Nate Sanden
d33227ab85
typo fix ( #12217 ) [skip ci]
2016-08-21 12:58:11 +03:00
Klimov Paul
143f9070af
Fixed yii\db\BaseActiveRecord::updateAttributes() change isNewRecord state for the new model
2016-08-12 11:43:31 +03:00
Carsten Brandt
ef0658726f
Revert "Revert "fixed mysql defaul integer display width on unsigned pk""
...
This reverts commit 144d78ebb4 .
fixes #11541
2016-08-08 13:36:08 +02:00
Carsten Brandt
144d78ebb4
Revert "fixed mysql defaul integer display width on unsigned pk"
...
This reverts commit 85d89e4893 because it
is a breaking change. see #11541
2016-08-08 11:54:29 +02:00
Carsten Brandt
85d89e4893
fixed mysql defaul integer display width on unsigned pk
...
fixes #11541
2016-08-08 10:47:34 +02:00
Alexander Makarov
876ef142c1
Remove explicit property initialization with null
2016-07-30 00:18:05 +03:00
Alexander Makarov
9b1b4fc5fa
Added missing phpdoc
2016-07-30 00:02:51 +03:00
Alexander Makarov
c7d5e69cda
Eliminated unused variables
2016-07-29 23:06:38 +03:00
Alexander Makarov
ef4885f478
Removed unnecessary semicolon
2016-07-29 22:57:47 +03:00
Alexander Makarov
0061692e60
Replaced unnecessary double quotes with single quotes
2016-07-29 22:56:38 +03:00
SilverFire - Dmitry Naumenko
6263eeba69
Updated PHPDoc
2016-07-25 23:33:42 +03:00
Evgeniy
ad796dbf22
#11912 : Postgresql negative default values support for integer/float/decimal columns ( #11933 )
...
* fixes #11912 : Postgresql negative default values support for integer/float/decimal columns
* added more tests
* updated CHANGELOG.md
2016-07-11 23:49:43 +02:00
Carsten Brandt
ee92cfa7ba
release version 2.0.9
2016-07-11 15:36:42 +02:00
Carsten Brandt
217d50e4ff
improved PHPdoc and @since annotations
2016-07-11 12:58:43 +02:00
Carsten Brandt
326cdfeb52
added test for #11256
2016-07-06 14:51:59 +02:00
Angel Guevara
6b6fa96319
Fix #11252 use strict comparison on hasAttribute()
...
close #11256
2016-07-06 14:48:38 +02:00
Carsten Brandt
bcc19e97cb
added note about Oracle DB connection charset
...
close #11387
2016-07-06 13:00:18 +02:00
Carsten Brandt
7fb447506d
fix mixed case column names for unique indexes in postgres
...
fixes #10613
2016-07-06 00:11:07 +02:00
Laszlovl
0f640c7138
Make sure inverseOf relations are also populated during dynamic relational queries
...
Refs #6347
2016-07-04 15:07:37 +02:00
Robert Korulczyk
099b364b14
Fixed #9574 : Implicit run ColumnSchemaBuilder::null() when default value is set to null. ( #11813 )
2016-06-25 15:52:11 +03:00
Robert Korulczyk
104712103b
Fixes #11693 : Handle QueryBuilder::batchInsert() calls with no data to insert. ( #11812 )
2016-06-25 15:51:09 +03:00
Carsten Brandt
4e3c9e4a98
fixed scalar value for IN condition
...
fixes regression from 2.0.8 #10961
fixes #11536
2016-06-20 15:20:21 +02:00
Carsten Brandt
e4dc2026bc
note about JOIN syntax
...
fixes #7549
2016-06-20 13:04:08 +02:00
Ricardo Pérez
33dfddd0c2
Fixes #8644 : Fixed trying to ENABLE/DISABLE TRIGGER ALL on a view in PostgreSQL
2016-06-19 15:33:00 +03:00
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.
2016-06-18 15:03:55 +03:00
Alexander Makarov
7cea46bcb4
Changed SQLite fix #11652 according to https://github.com/yiisoft/yii2/pull/11653#issuecomment-224016289
2016-06-06 19:57:42 +03:00
Boudewijn Vahrmeijer
0a60466729
Fixes #11527 : Fixed bigPrimaryKey() for SQLite
2016-06-06 19:33:22 +03:00
Carsten Brandt
418de14730
Merge pull request #11632 from nkovacs/psr2-fixes
...
Coding style fixes
2016-05-26 23:41:47 +02:00
Nikola Kovacs
9d327baa8b
coding style fixes
2016-05-26 11:19:32 +02:00
Evgeniy Tkachenko
dbb54f986c
Updated phpDoc of scalar
2016-05-25 09:14:31 +03:00
SilverFire - Dmitry Naumenko
a23cbda185
Code style fixed
2016-05-22 13:13:24 +03:00
SilverFire - Dmitry Naumenko
e5bad89c34
Merge branch '11484-oci-schema' of https://github.com/SSiwek/yii2 into SSiwek-11484-oci-schema
2016-05-22 12:57:14 +03:00
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.
2016-05-22 12:03:44 +03:00
mshutov
bb35fda6e9
Update Migration.php ( #11605 )
...
Typo in doc for safeDown
2016-05-21 15:32:34 +03:00
Alexander Makarov
4d809af0ff
Fixed @since tag
2016-05-13 17:29:25 +03:00
Alexander Makarov
94d0bd9ae7
Fixed method name
2016-05-13 16:05:38 +03:00
Alexander Makarov
27866bf9d6
Changed name to append(), fixed phpdoc, added changelog
2016-05-13 15:58:06 +03:00
Chris Harris
66eabda770
Fixes #11195 : Added ability to append custom string to schema builder column definition
2016-05-13 15:57:54 +03:00
Alexander Makarov
5210fc8e42
Fixes #11532 : Fixed casting of empty char value to null resulting in integrity constraint violation for not null columns
2016-05-13 15:34:35 +03:00
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
2016-05-06 11:04:27 +02:00
SSiwek
5fc46d900b
Moved setting of isPrimaryKey #11484
2016-05-03 08:03:33 +02:00
SilverFire - Dmitry Naumenko
da355e8e4e
Merge branch '#11428-oci-findcolumns-speedup' of https://github.com/SSiwek/yii2 into SSiwek-11428-oci-findcolumns-speedup
2016-05-01 15:51:41 +03:00