Commit f4183f0 1 parent 30513b4 commit f4183f0 Copy full SHA for f4183f0
File tree 4 files changed +116
-63
lines changed
4 files changed +116
-63
lines changed Original file line number Diff line number Diff line change 13
13
- Bug #349 , #352 : Restore connection if closed by connection timeout (@Tigrov )
14
14
- Enh #354 : Separate column type constants (@Tigrov )
15
15
- Enh #355 : Realize ` ColumnBuilder ` class (@Tigrov )
16
+ - Enh #357 : Update according changes in ` ColumnSchemaInterface ` (@Tigrov )
16
17
17
18
## 1.2.0 March 21, 2024
18
19
Original file line number Diff line number Diff line change 50
50
* comment: string,
51
51
* enum_values?: string[],
52
52
* size?: int,
53
- * precision?: int,
54
53
* scale?: int,
55
54
* }
56
55
* @psalm-type RowConstraint = array{
@@ -416,10 +415,12 @@ private function loadColumnSchema(array $info): ColumnSchemaInterface
416
415
$ dbType = $ info ['type ' ];
417
416
/** @psalm-var ColumnInfoArray $info */
418
417
$ column = $ columnFactory ->fromDefinition ($ dbType );
418
+ /** @psalm-suppress DeprecatedMethod */
419
419
$ column ->name ($ info ['field ' ]);
420
- $ column ->allowNull ($ info ['null ' ] = == 'YES ' );
421
- $ column ->primaryKey (str_contains ( $ info ['key ' ], 'PRI ' ) );
420
+ $ column ->notNull ($ info ['null ' ] ! == 'YES ' );
421
+ $ column ->primaryKey ($ info ['key ' ] === 'PRI ' );
422
422
$ column ->autoIncrement (stripos ($ info ['extra ' ], 'auto_increment ' ) !== false );
423
+ $ column ->unique ($ info ['key ' ] === 'UNI ' );
423
424
$ column ->comment ($ info ['comment ' ]);
424
425
$ column ->dbType ($ dbType );
425
426
You can’t perform that action at this time.
0 commit comments