158 Commits

Author SHA1 Message Date
5d0d6f4a18 Fix #19705: Add binary and other data type to $typeMap list for MySQL 2023-02-09 22:05:52 +03:00
63ae3f9a04 Fix #9740: Usage of DI instead of new keyword in Schemas 2022-11-27 19:10:23 +03:00
6a144bfc61 Fix #19537: Fix default expression detection for MariaDB date and time columns 2022-09-04 22:10:02 +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
6a36fa82c7 Fix #19047, fix #19118: Fix deprecated preg_match() passing null parameters #2 in db\mysql\Schema.php 2022-02-07 01:29:03 +03:00
1271bc419f Fix #19041: Fix PHP 8.1 issues 2022-01-14 13:52:01 +03:00
9c370a6ccf Fix #8750: Fix MySQL support when running in ANSI/ANSI_QUOTES modes 2021-01-30 23:21:04 +03:00
f1aaa0de89 Fix #18171: Change case of column names in SQL query for findConstraints to fix MySQL 8 compatibility 2020-07-15 16:55:23 +03:00
c5b1574757 Fix #18147: Fixed parameters binding for MySQL when prepare emulation is off 2020-07-03 12:40:32 +03:00
385fe13d66 Revert #18102 since renaming is technically problematic (#18109) 2020-06-17 13:40:17 +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
79e68767db Fix #11945: Fix Schema Builder MySQL column definition order 2020-02-22 17:17:06 +03:00
b79fe7d106 Fix #17744: Fix a bug with setting incorrect defaultValue to AR column with CURRENT_TIMESTAMP(x) as default expression (MySQL >= 5.6.4) 2019-12-20 15:23:20 +03: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
c0254d617e Fix #17449: Fixed order of SQL column build syntax for MySQL migration 2019-07-23 17:37:16 +03:00
ed64d65886 release version 2.0.16 2019-01-31 00:54:16 +01:00
7ccadb4a79 Fixes #15167: Fixed loading of default value current_timestamp() for MariaDB >= 10.2.3 2019-01-11 17:47:40 -05: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
a33b09dab3 remove ColumnSchema import from mysql Schema because it conflicts with existing class 2018-03-20 13:40:28 +01:00
f33959419a Fixes #15878: Fixed migration with a comment containing an apostrophe 2018-03-20 11:19:10 +01:00
4ad04be2ea Fixed null saving for JSON and Array cols in AR
Fixes #15863
2018-03-13 16:03:46 +02:00
79583a2c7e Reverted casting JsonExpression(null) to SQL NULL 2018-03-10 11:14:08 +02:00
cc29ef8968 Fixed JsonExpressionBuilder to cast JSON explicitly
Fixes #15839;
2018-03-10 09:56:28 +02:00
92213864d9 Fixes #15776: Fixed slow MySQL constraints retrieving 2018-03-08 00:45:22 +03:00
abb503c284 release version 2.0.14.1 2018-02-24 22:23:06 +02:00
25d176aa70 Added flags to ColumnSchema to disable JSON and Arrays support 2018-02-24 17:18:40 +02:00
dc452b7e24 Fixed multiple JSON-related issues (#15732) 2018-02-23 23:07:04 +02:00
bd472c3640 Revert "Fixed regexp in tests"
This reverts commit 4fbece20cece701b9c917e130545c5c49fa044d8.
2018-02-20 23:56:54 +02:00
4fbece20ce Fixed regexp in tests 2018-02-20 23:56:36 +02: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
01636ae45a Revert "Use QueryBuilder->buildExpression for Query where possible"
This reverts commit 79679b9b6c019682b3ccd817cea371b1214695ba.
2018-02-18 20:50:15 +02:00
79679b9b6c Use QueryBuilder->buildExpression for Query where possible 2018-02-18 20:36:25 +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