mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-18 17:21:26 +08:00
Fix #17504: Fix upsert when $updateColumns = true
but there are no columns to update in the table
This commit is contained in:

committed by
Alexander Makarov

parent
f72f7c7406
commit
cdd40b8dfb
@ -29,6 +29,7 @@ DROP TABLE IF EXISTS "T_constraints_3";
|
||||
DROP TABLE IF EXISTS "T_constraints_2";
|
||||
DROP TABLE IF EXISTS "T_constraints_1";
|
||||
DROP TABLE IF EXISTS "T_upsert";
|
||||
DROP TABLE IF EXISTS "T_upsert_1";
|
||||
|
||||
CREATE TABLE "profile" (
|
||||
id INTEGER NOT NULL,
|
||||
@ -354,3 +355,8 @@ CREATE TABLE "T_upsert"
|
||||
"profile_id" INT NULL,
|
||||
UNIQUE ("email", "recovery_email")
|
||||
);
|
||||
|
||||
CREATE TABLE "T_upsert_1"
|
||||
(
|
||||
"a" INTEGER NOT NULL PRIMARY KEY
|
||||
);
|
||||
|
Reference in New Issue
Block a user