You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -51,10 +51,10 @@ if you want to upgrade from version A to version C and there is
51
51
version B between A and C, you need to follow the instructions
52
52
for both A and B.
53
53
54
-
Upgrade from Yii 2.0.53
54
+
Upgrade from Yii 2.0.52
55
55
-----------------------
56
56
57
-
*`ErrorHandler::convertExceptionToError()` has been deprecated and will be removed in version 22.0.
57
+
*`ErrorHandler::convertExceptionToError()` has been deprecated and will be removed in version 2.2.0.
58
58
59
59
This method was deprecated due to `PHP 8.4` deprecating the use of `E_USER_ERROR` with `trigger_error()`.
60
60
The framework now handles exceptions in `__toString()` methods more appropriately based on the PHP version.
@@ -86,8 +86,6 @@ Upgrade from Yii 2.0.53
86
86
}
87
87
```
88
88
89
-
Upgrade from Yii 2.0.52
90
-
-----------------------
91
89
* There was a bug when loading fixtures into PostgreSQL database, the table sequences were not reset. If you used a work-around or if you depended on this behavior, you are advised to review your code.
92
90
93
91
Upgrade from Yii 2.0.51
@@ -102,109 +100,109 @@ Upgrade from Yii 2.0.50
102
100
103
101
* Correcting the behavior for `JSON` column type in `MariaDb`.
104
102
105
-
Example usage of `JSON` column type in `db`:
106
-
107
-
```php
108
-
<?php
109
-
110
-
use yii\db\Schema;
111
-
112
-
$db = Yii::$app->db;
113
-
$command = $db->createCommand();
114
-
115
-
// Create a table with a JSON column
116
-
$command->createTable(
117
-
'products',
118
-
[
119
-
'id' => Schema::TYPE_PK,
120
-
'details' => Schema::TYPE_JSON,
121
-
],
122
-
)->execute();
123
-
124
-
// Insert a new product
125
-
$command->insert(
126
-
'products',
127
-
[
128
-
'details' => [
129
-
'name' => 'apple',
130
-
'price' => 100,
131
-
'color' => 'blue',
132
-
'size' => 'small',
133
-
],
134
-
],
135
-
)->execute();
136
-
137
-
// Read all products
138
-
$records = $db->createCommand('SELECT * FROM products')->queryAll();
139
-
```
140
-
141
-
Example usage of `JSON` column type in `ActiveRecord`:
0 commit comments