97a4d711ec
Merge branch 'master' into sync-master-2052.
2025-04-26 19:03:07 -04:00
e38f62e55b
Fix #20329 : pgsql: Column Schema doesn't recognize PG type cast
2025-02-27 17:33:35 +03:00
52e4a3e645
release version 2.0.50
2024-05-30 20:23:31 +03:00
20d6c65db2
Merge branch 'master' into sync-to-master.
2024-03-20 06:11:31 -03:00
e2a167028b
Upgrade to PSR12 coding standard ( #20121 )
2024-03-19 17:21:27 +03:00
edc0762b16
Remove deprecated methods to ColumnSchema::class
.
2023-09-22 10:05:46 -03:00
c9c100acd7
Remove deprecated method className()
for branch 2.2
. ( #19894 )
2023-07-16 21:45:39 +08:00
63ae3f9a04
Fix #9740 : Usage of DI instead of new keyword in Schemas
2022-11-27 19:10:23 +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
cb5e180695
Fix PhpDoc of yii\db\pgsql\QueryBuilder::normalizeTableRowData()
( #19234 )
2022-02-15 14:27:59 +03:00
e3028c524d
Fix #18899 : Replace usages of strpos
with strncmp
and remove redundant usage of array_merge
and array_values
2021-09-28 11:06:46 +03:00
7966fe47e6
Scrutinizer fixes ( #18685 )
...
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/filters/AccessRule.php?selectedLabels%5B0%5D=2&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/helpers/BaseFileHelper.php?selectedLabels%5B0%5D=2&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/base/Application.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/base/Module.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/web/MultipartFormDataParser.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/web/Session.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/base/Controller.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/MigrateController.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* Added vardocs, and small refactor
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/db/conditions/InConditionBuilder.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/db/Connection.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/db/mssql/QueryBuilder.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/log/Logger.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/BaseMigrateController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* Adding space between type
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/CacheController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/FixtureController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/MigrateController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* Update framework/console/controllers/CacheController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/CacheController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2021-05-31 21:07:36 +03:00
42e8aa4ea5
Fix #18325 : Fix yii\db\pgsql\Schema
to respect non-default PgSQL schema name for data types
...
Co-authored-by: SilverFire - Dmitry Naumenko <d.naumenko.a@gmail.com>
2021-04-01 00:52:02 +03:00
fbd932903c
Fix #18508 : Fix Postgres SQL query for load table indexes with correct column order
2021-02-25 13:08:35 +03:00
b8f4958092
Fix #18442 : Fix calls with array access to strings
2020-12-23 01:08:58 +03:00
5558ee793b
Fix #18040 , fix #15265 , fix #18232 database issues ( #18225 )
...
- Bug #18040 : Display width specification for integer data types was deprecated in MySQL 8.0.19
- Bug #15265 : PostgreSQL > 10.0 is not pass tests with default value of timestamp CURRENT_TIMESTAMP
- Bug #18232 : Fail tests pgsql v-10.14, v-11.9, v-12-latest
2020-09-10 20:36:04 +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
bc180ac20d
Fix #17745 : Fix PostgreSQL query builder drops default value when it is empty
2019-12-18 14:27:10 +03:00
69b1966b4a
PHP 7.4 fixes
...
- Fix `Model::activeAttributes()` to access array offset on value of non-string
- Fix incorrect decoding of default binary value for PostgreSQL
- Fix incorrect type-casting of reflection type to string
2019-12-10 15:08:45 +03:00
0df43397ba
release version 2.0.29
2019-10-22 16:47:14 +03:00
09eacd8dc1
Bug #17597 : PostgreSQL 12 and partitioned tables support (batyrmastyr)
...
* yiisoft#17597, pg_constraint.consrc removed in Postgres 12
* yiisoft#17597, load schema for partitioned tables (introduced in Postgres 10)
* messed up with issue number
* #yiisoft#17597 Postgres 12 support, support GENERATED AS IDENTITY columns
* uncleared FileCache leads to falsy failures on subsequent test runs
* moved .sql for postgres 10 and 12 to separate files, added ResetSequence test for GENERATED AS IDENTITY column
2019-10-18 14:57:24 +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
4ad04be2ea
Fixed null
saving for JSON and Array cols in AR
...
Fixes #15863
2018-03-13 16:03:46 +02:00
1a74b3d4f8
[minor] SCA with Php Inspections (EA Ultimate) ( #15871 )
...
* Php Inspections (EA Ultimate): use type casting where applicable
* Php Inspections (EA Ultimate): use constants where applicable
* Php Inspections (EA Ultimate): CS
* Php Inspections (EA Ultimate): address some of one-time used variables
* Php Inspections (EA Ultimate): address some of performance-related findings
* Php Inspections (EA Ultimate): address some of performance-related findings
* Php Inspections (EA Ultimate): revert a constant usage
* Php Inspections (EA Ultimate): revert sequential assignments
* Php Inspections (EA Ultimate): build is green again
* Php Inspections (EA Ultimate): revert array_merge tweaks
* Php Inspections (EA Ultimate): revert BC-incompatible one-time used variable tweak
* Update description [skip ci]
* Php Inspections (EA Ultimate): CS
2018-03-12 01:37:19 +03:00
c6ea3fb455
Revert "Fixed JsonExpressionBuilder to generate SQL NULL"
...
This reverts commit cf4bd39fc1927c3cbe85c08c6fc473d60921d96f.
2018-03-10 11:11:11 +02:00
cf4bd39fc1
Fixed JsonExpressionBuilder to generate SQL NULL
...
Fixes #15863
2018-03-10 10:04:41 +02:00
aed911b5f1
Fixed nesting of JsonExpression, ArrayExpression
2018-03-08 12:45:01 +02:00
a98552ef64
Fix PostgreSQL aray field typecast when $disableArraySupport is true
2018-03-08 00:58:13 -03:00
4e35eb6539
Fixed JSONB support in PostgreSQL 9.4
...
Closes #15829
2018-03-04 20:25:36 +02:00
f7da602250
PgSQL: Fix table schema load for table name in quotes
...
This commit fixes the table schema loading for PostgreSQL, when
the table name is specified in quotes, e.g. `"type"`.
2018-03-04 20:19:45 +02:00
5fa25b331d
Fixed encoding of empty ArrayExpression for PostgreSQL
2018-03-03 20:43:58 +02:00
d5d4b8b0f5
Fixed null
values handling for PostgresSQL arrays
...
Fixes #15804
2018-03-03 18:54:33 +02:00
abb503c284
release version 2.0.14.1
2018-02-24 22:23:06 +02:00
f0f823ad2a
Fixed typo [skip ci]
2018-02-24 21:55:47 +02:00
25d176aa70
Added flags to ColumnSchema
to disable JSON and Arrays support
2018-02-24 17:18:40 +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
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
4e176ca325
Fixes #15108 : Fixed yii\db\Schema::getSchemaNames()
for MSSQL and added tests for all DBMSes
2017-11-07 19:20:14 +03:00