Skip to content

Commit

Permalink
Refactor column PHP type
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Aug 8, 2024
1 parent 4c42c68 commit 1d7949c
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions tests/Provider/SchemaProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static function columns(): array
'int_col' => [
'type' => 'integer',
'dbType' => 'integer',
'phpType' => 'integer',
'phpType' => 'int',
'primaryKey' => false,
'allowNull' => false,
'autoIncrement' => false,
Expand All @@ -30,7 +30,7 @@ public static function columns(): array
'int_col2' => [
'type' => 'integer',
'dbType' => 'integer',
'phpType' => 'integer',
'phpType' => 'int',
'primaryKey' => false,
'allowNull' => true,
'autoIncrement' => false,
Expand All @@ -43,7 +43,7 @@ public static function columns(): array
'tinyint_col' => [
'type' => 'tinyint',
'dbType' => 'tinyint(3)',
'phpType' => 'integer',
'phpType' => 'int',
'primaryKey' => false,
'allowNull' => true,
'autoIncrement' => false,
Expand All @@ -56,7 +56,7 @@ public static function columns(): array
'smallint_col' => [
'type' => 'smallint',
'dbType' => 'smallint(1)',
'phpType' => 'integer',
'phpType' => 'int',
'primaryKey' => false,
'allowNull' => true,
'autoIncrement' => false,
Expand Down Expand Up @@ -108,7 +108,7 @@ public static function columns(): array
'float_col' => [
'type' => 'double',
'dbType' => 'double(4,3)',
'phpType' => 'double',
'phpType' => 'float',
'primaryKey' => false,
'allowNull' => false,
'autoIncrement' => false,
Expand All @@ -121,7 +121,7 @@ public static function columns(): array
'float_col2' => [
'type' => 'double',
'dbType' => 'double',
'phpType' => 'double',
'phpType' => 'float',
'primaryKey' => false,
'allowNull' => true,
'autoIncrement' => false,
Expand All @@ -134,7 +134,7 @@ public static function columns(): array
'blob_col' => [
'type' => 'binary',
'dbType' => 'blob',
'phpType' => 'resource',
'phpType' => 'mixed',
'primaryKey' => false,
'allowNull' => true,
'autoIncrement' => false,
Expand All @@ -147,7 +147,7 @@ public static function columns(): array
'numeric_col' => [
'type' => 'decimal',
'dbType' => 'decimal(5,2)',
'phpType' => 'double',
'phpType' => 'float',
'primaryKey' => false,
'allowNull' => true,
'autoIncrement' => false,
Expand All @@ -173,7 +173,7 @@ public static function columns(): array
'bool_col' => [
'type' => 'boolean',
'dbType' => 'tinyint(1)',
'phpType' => 'boolean',
'phpType' => 'bool',
'primaryKey' => false,
'allowNull' => false,
'autoIncrement' => false,
Expand All @@ -186,7 +186,7 @@ public static function columns(): array
'bool_col2' => [
'type' => 'boolean',
'dbType' => 'tinyint(1)',
'phpType' => 'boolean',
'phpType' => 'bool',
'primaryKey' => false,
'allowNull' => true,
'autoIncrement' => false,
Expand All @@ -212,7 +212,7 @@ public static function columns(): array
'bit_col' => [
'type' => 'bit',
'dbType' => 'bit(8)',
'phpType' => 'integer',
'phpType' => 'int',
'primaryKey' => false,
'allowNull' => false,
'autoIncrement' => false,
Expand All @@ -225,7 +225,7 @@ public static function columns(): array
'json_col' => [
'type' => 'json',
'dbType' => 'json',
'phpType' => 'array',
'phpType' => 'mixed',
'primaryKey' => false,
'allowNull' => false,
'autoIncrement' => false,
Expand All @@ -238,7 +238,7 @@ public static function columns(): array
'json_text_col' => [
'type' => 'json',
'dbType' => 'json',
'phpType' => 'array',
'phpType' => 'mixed',
'primaryKey' => false,
'allowNull' => true,
'autoIncrement' => false,
Expand All @@ -256,7 +256,7 @@ public static function columns(): array
'id' => [
'type' => 'integer',
'dbType' => 'integer',
'phpType' => 'integer',
'phpType' => 'int',
'primaryKey' => true,
'allowNull' => false,
'autoIncrement' => true,
Expand Down Expand Up @@ -287,7 +287,7 @@ public static function columns(): array
'id' => [
'type' => 'integer',
'dbType' => 'integer',
'phpType' => 'integer',
'phpType' => 'int',
'primaryKey' => true,
'allowNull' => true,
'autoIncrement' => true,
Expand Down Expand Up @@ -337,7 +337,7 @@ public static function columnsTypeBit(): array
'bit_col_1' => [
'type' => 'boolean',
'dbType' => 'bit(1)',
'phpType' => 'boolean',
'phpType' => 'bool',
'primaryKey' => false,
'allowNull' => false,
'autoIncrement' => false,
Expand All @@ -350,7 +350,7 @@ public static function columnsTypeBit(): array
'bit_col_2' => [
'type' => 'boolean',
'dbType' => 'bit(1)',
'phpType' => 'boolean',
'phpType' => 'bool',
'primaryKey' => false,
'allowNull' => true,
'autoIncrement' => false,
Expand All @@ -363,7 +363,7 @@ public static function columnsTypeBit(): array
'bit_col_3' => [
'type' => 'bit',
'dbType' => 'bit(32)',
'phpType' => 'integer',
'phpType' => 'int',
'primaryKey' => false,
'allowNull' => false,
'autoIncrement' => false,
Expand All @@ -376,7 +376,7 @@ public static function columnsTypeBit(): array
'bit_col_4' => [
'type' => 'bit',
'dbType' => 'bit(32)',
'phpType' => 'integer',
'phpType' => 'int',
'primaryKey' => false,
'allowNull' => true,
'autoIncrement' => false,
Expand All @@ -389,7 +389,7 @@ public static function columnsTypeBit(): array
'bit_col_5' => [
'type' => 'bit',
'dbType' => 'bit(64)',
'phpType' => 'integer',
'phpType' => 'int',
'primaryKey' => false,
'allowNull' => false,
'autoIncrement' => false,
Expand All @@ -402,7 +402,7 @@ public static function columnsTypeBit(): array
'bit_col_6' => [
'type' => 'bit',
'dbType' => 'bit(64)',
'phpType' => 'integer',
'phpType' => 'int',
'primaryKey' => false,
'allowNull' => true,
'autoIncrement' => false,
Expand Down

0 comments on commit 1d7949c

Please sign in to comment.