82 Commits

Author SHA1 Message Date
52e4a3e645 release version 2.0.50 2024-05-30 20:23:31 +03:00
e7b6330dbb Merge branch 'master' into master 2024-05-16 15:04:21 +03:00
e2a167028b Upgrade to PSR12 coding standard (#20121) 2024-03-19 17:21:27 +03:00
d94fd0f56c Removed (for Mysql QueryBuilder) NotSupportedException() when executing addheck() and dropCheck(), resolve #19819 2023-07-05 11:54:24 +02:00
6e7d0fbff4 Fix #19816: Explicitly pass $fallbackToMaster as true to getSlavePdo() to ensure it is not affected by child class with changed defaults 2023-05-04 15:36:33 +03:00
2808e8d814 Fix #15500: Fix saving empty records to MySQL 2022-08-29 10:43:00 +03:00
161526cd41 HTTPS everywhere (#19503) 2022-08-03 12:32:18 +03:00
4628b91e73 Fix types (#19332)
* Migration::upsert() returns void

* Unneeded `@property` tags

* Add missing `null` param/return types

* Null types for db\Query + db\ActiveQuery

* Fixed testSelect
2022-03-30 18:40:10 +02:00
9c370a6ccf Fix #8750: Fix MySQL support when running in ANSI/ANSI_QUOTES modes 2021-01-30 23:21:04 +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
55890453ab Fix #17942: Fix for DbCache loop in MySQL QueryBuilder 2020-04-02 16:41:11 +03:00
b7723aebcf Fix bracket 2020-03-04 12:25:16 +03:00
db9e2fa709 Add missing bracket 2020-03-04 11:59:04 +03:00
fbdf464510 Backwards compatibility and formatting fix for #17897 2020-03-04 01:59:57 +03:00
358e3518b3 feat: fix unittest 2020-02-28 11:48:24 +08:00
990c4be454 feat: fix codeclimate error 2020-02-28 11:16:23 +08:00
2051c05087 feat: update code after review 2020-02-27 08:05:28 +08:00
b9316c9205 feat: fix unit test errors 2020-02-26 18:55:23 +08:00
7428a45bf9 fix: #13749 Yii opens db connection even when hits query cache 2020-02-26 18:10:58 +08:00
cc5bb71f75 Fix #17449: Ensure CHECK statement goes after COMMENT in MySQL QueryBuilder::addCommentOnColumn() 2019-09-03 19:36:37 +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
ed64d65886 release version 2.0.16 2019-01-31 00:54:16 +01:00
9f383ab228 Fixes #14367: In yii\db\mysql\QueryBuilder added support fractional seconds for time types for MySQL >= 5.6.4 2018-10-11 14:43:32 +03:00
c31f9ac811 Fixes #15878: Fixed migration with a comment containing an apostrophe 2018-03-15 00:51:32 +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
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
1501c659ac Add empty lines before return statements. (#14682) [skip ci] 2017-08-21 01:58:49 +03:00
fe8a0a6a2e Enable no_useless_else rule in php-cs-fixer (#14420) 2017-07-10 11:26:21 +03:00
164d3c83e9 Have I fixed these phpdocs? Let’s see… 2017-07-03 15:10:48 +03:00
118fc08af8 Fix dropping unique/indexes 2017-05-15 20:55:26 +03:00
73ac13e6d7 Implement retrieving dbms constraints 2017-05-15 20:55:25 +03:00
454f0a9301 Fixes #13807: Fixed yii\db\QueryBuilder to inherit subquery params when building a INSERT INTO ... SELECT query 2017-04-17 03:31:43 +03:00
10b59ee6e4 Merge branch 'master' into 13221_limit_offset_expression 2017-02-22 17:02:04 +03:00
37b8cbb2d0 Fixes #12758: Added the ability to use instances of \yii\db\Query class as values in the \yii\db\QueryBuilder::insert() method 2017-01-29 00:54:46 +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
5488fc6e28 fixes #13221
Make \yii\db\QueryTrait::limit and \yii\db\QueryTrait::offset methods works with \yii\db\Expression
2016-12-20 14:08:03 +07:00
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
b3081e53a5 Fixed bug in yii\db\mysql\QueryBuilder (#12428)
Bug in yii\db\mysql\QueryBuilder class on insert empty columns
2016-09-01 17:47:46 +03:00
ef0658726f Revert "Revert "fixed mysql defaul integer display width on unsigned pk""
This reverts commit 144d78ebb46874cd229f5c13ac3ca7ce3d59f1f2.

fixes #11541
2016-08-08 13:36:08 +02:00
144d78ebb4 Revert "fixed mysql defaul integer display width on unsigned pk"
This reverts commit 85d89e489311e20c626bcb90129c0c86978fcee4 because it
is a breaking change. see #11541
2016-08-08 11:54:29 +02:00
85d89e4893 fixed mysql defaul integer display width on unsigned pk
fixes #11541
2016-08-08 10:47:34 +02:00
731769241b release version 2.0.8 2016-04-28 16:50:20 +02:00
edd6e719bb added missing since annotations and removed duplicate line 2016-04-28 03:02:17 +02:00