59 Commits

Author SHA1 Message Date
52e4a3e645 release version 2.0.50 2024-05-30 20:23:31 +03:00
e2a167028b Upgrade to PSR12 coding standard (#20121) 2024-03-19 17:21:27 +03:00
161526cd41 HTTPS everywhere (#19503) 2022-08-03 12:32:18 +03:00
cb5e180695 Fix PhpDoc of yii\db\pgsql\QueryBuilder::normalizeTableRowData() (#19234) 2022-02-15 14:27:59 +03:00
eb956e9c6b primary/replica in a definitely non-breaking way (#18106) 2020-06-16 11:33:27 +03:00
472600ee3f Fix #18102: Use “primary”/“replica” terminology instead of “master”/“slave” 2020-06-14 00:12:10 +03:00
bc180ac20d Fix #17745: Fix PostgreSQL query builder drops default value when it is empty 2019-12-18 14:27:10 +03:00
cdd40b8dfb Fix #17504: Fix upsert when $updateColumns = true but there are no columns to update in the table 2019-08-21 11:56:20 +03:00
56215d58e1 Fixes #12077, #12135, #17263: Fixed PostgreSQL version of alterColumn() to accept properly ColumnSchemaBuilder definition of column 2019-04-30 21:08:00 +04:00
292a545642 Fixes #16104: Fixed yii\db\pgsql\QueryBuilder::dropIndex() to prepend index name with schema name 2018-05-31 17:37:14 +03:00
22832b7c49 release version 2.0.14 2018-02-19 00:27:09 +02:00
089685975a Wrap @inheritdoc tag in curly brackets [skip ci] 2018-02-19 00:16:19 +02:00
e806a3b50a Added yii\db\ExpressionInterface support to yii\db\Command::batchInsert()
Fixes #15661
2018-02-18 20:23:08 +02:00
df91a9608f Fixes #14638: Added yii\db\SchemaBuilderTrait::tinyInteger() 2018-02-12 12:01:21 +03:00
e6f5c46cdc Fixes #15633: Deprecate some things going away/changing in 2.1
- Deprecated `yii\base\BaseObject::className()` in favor of native PHP syntax `::class`, which does not trigger autoloading
- Deprecated XCache and Zend data cache support as caching backends
- Deprecated `yii\BaseYii::powered()` method
- Added `yii\base\InvalidArgumentException` and deprecated `yii\base\InvalidParamException`
- Added `yii\BaseYii::debug()` and deprecated `yii\BaseYii::trace()`
2018-02-11 01:48:29 +03:00
de1750228d Fixes #13879: Added upsert support for yii\db\QueryBuilder and yii\db\Command 2018-02-09 01:05:50 +03:00
40b038379f Fixes #13019: Support JSON in SchemaBuilderTrait 2018-02-06 16:35:49 +03:00
d16586334d Fixes #7640: Implemented custom data types support. Added JSON support for MySQL and PostgreSQL, array support for PostgreSQL 2018-02-05 04:59:14 +07:00
65f6b59b35 @inheritdoc notation changed 2018-01-23 13:11:24 +02:00
93bbf5b39d Fixes #15015: Added StringHelper::floatToString() to savely cast float values independent of the locale, also fixes some places in the framework that use it now 2017-10-27 11:41:45 +03:00
1501c659ac Add empty lines before return statements. (#14682) [skip ci] 2017-08-21 01:58:49 +03:00
cda3089623 Fixed batchInsert casting of double values according to locale (#14448)
fixes #6526
2017-08-13 22:15:04 +02:00
fe8a0a6a2e Enable no_useless_else rule in php-cs-fixer (#14420) 2017-07-10 11:26:21 +03:00
6db6a2ddbe Fixes #13418: Fixed QueryBuilder::batchInsert() if $rows is \Generator 2017-02-24 00:28:27 +03:00
a182ce57fc Fixes for issues found with Static Code Analysis with Php Inspections (EA Extended) (#13606)
* Php Inspections (EA Extended): language level migration fixes
* Php Inspections (EA Extended): instanceof a trait always return false
* Php Inspections (EA Extended): fixed preg_quote (/ is not escaped by default)
* Php Inspections (EA Extended): fixed a greedy regex
* Php Inspections (EA Extended): refereted instanceof self in a trait
* Php Inspections (EA Extended): revert language level changes in requirements checker
* Php Inspections (EA Extended): revert language level changes in requirements checker
* Php Inspections (EA Extended): more greedy regexes fixed
2017-02-22 17:07:52 +03:00
0ea45c78a8 Fixes #13571: Fix yii\db\mssql\QueryBuilder::checkIntegrity for all tables 2017-02-22 16:57:32 +03:00
30b7fc8dc1 Fixes #13577: yii\db\QueryBuilder::truncateTable should work consistent over all databases 2017-02-20 23:38:50 +03:00
aeb6231d92 Fixes #13582: PK column in yii\db\pgsql\resetSequence() was not quoted properly 2017-02-19 17:35:59 +03:00
25f08afc96 Fixes #8293: yii\db\Query can be passed to insert method in yii\db\QueryBuilder 2017-01-28 23:47:26 +03:00
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
104712103b Fixes #11693: Handle QueryBuilder::batchInsert() calls with no data to insert. (#11812) 2016-06-25 15:51:09 +03:00
33dfddd0c2 Fixes #8644: Fixed trying to ENABLE/DISABLE TRIGGER ALL on a view in PostgreSQL 2016-06-19 15:33:00 +03:00
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
2f91889b70 Removed unsignedPrimaryKey() schema builder type; now, the unsigned() modifier works with primary key types e.g. pk()->unsigned() or bigpk()->unsigned(). 2016-02-26 17:48:03 -08:00
51b99320bd Sqlite specific schema builder class actually gets loaded now 2016-02-20 06:53:31 -08:00
eaeb926768 Adds char datatype to framework 2016-02-20 01:52:23 -08:00
1b3770fd21 Use === instead of == where possible 2015-10-10 01:04:35 +03:00
abc7dbbf0f added missing @since annotations 2015-08-04 12:40:12 +02:00
8cfc89b21c adjusted pgsql/QueryBuilder batchInsert to match parent implementation
this also fixes #8551
2015-08-02 23:20:52 +02:00
6d9fe671de various code style and whitespace adjustments 2015-08-02 00:27:19 +02:00
9c4c984200 improved docs and changelog for #8903 2015-07-02 15:20:32 +02:00
db12282e59 \yii\db\pgsql\QueryBuilder add createIndex() for the creating specific indexes
close #8903
2015-07-02 15:05:33 +02:00
5870a74672 Added Schema::DOUBLE to represent ANSI SQL Double Precision 2015-02-25 16:01:37 +03:00
1e5f159f78 override only mssql and sqlite QueryBuilder; throw an exception for composite in condition with a subquery 2015-01-31 22:20:41 -05:00
f58d096920 fixes #6792, use a simpler composite in condition implementation on dbs other than pgsql 2015-01-31 22:20:41 -05:00
9eedfd054e Fixed test break. 2014-11-16 12:31:02 -05:00
ab1f32ef76 Fixes #4492: Support PostgreSQL-specific syntax for QueryBuilder::alterColumn() 2014-11-16 10:47:46 -05:00
25bf486b7f save some function calls on AR insert 2014-08-12 18:13:49 +02:00
92d65ab78b fix issue with postgreSQL and batch inserting boolean values
fixes #4654
2014-08-12 01:43:49 +02:00
3a1e0f3a5c property codestyle framework 2014-07-30 00:21:31 +02:00