Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
JanJakes committed Dec 17, 2024
1 parent d1dfbdb commit 8af4cb5
Show file tree
Hide file tree
Showing 3 changed files with 430 additions and 127 deletions.
50 changes: 25 additions & 25 deletions tests/WP_SQLite_Driver_Tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ public function testCreateTable() {
),
(object) array(
'Field' => 'user_status',
'Type' => 'int(11)',
'Type' => 'int',
'Null' => 'NO',
'Key' => '',
'Default' => '0',
Expand Down Expand Up @@ -1049,7 +1049,7 @@ public function testColumnWithOnUpdate() {
array(
(object) array(
'Field' => 'id',
'Type' => 'int(11)',
'Type' => 'int',
'Null' => 'NO',
'Key' => '',
'Default' => '0',
Expand All @@ -1076,7 +1076,7 @@ public function testColumnWithOnUpdate() {
array(
(object) array(
'Field' => 'id',
'Type' => 'int(11)',
'Type' => 'int',
'Null' => 'NO',
'Key' => '',
'Default' => '0',
Expand Down Expand Up @@ -1147,7 +1147,7 @@ public function testColumnWithOnUpdate() {
array(
(object) array(
'Field' => 'id',
'Type' => 'int(11)',
'Type' => 'int',
'Null' => 'NO',
'Key' => '',
'Default' => '0',
Expand Down Expand Up @@ -1218,7 +1218,7 @@ public function testChangeColumnWithOnUpdate() {
array(
(object) array(
'Field' => 'id',
'Type' => 'int(11)',
'Type' => 'int',
'Null' => 'NO',
'Key' => '',
'Default' => '0',
Expand Down Expand Up @@ -1251,7 +1251,7 @@ public function testChangeColumnWithOnUpdate() {
array(
(object) array(
'Field' => 'id',
'Type' => 'int(11)',
'Type' => 'int',
'Null' => 'NO',
'Key' => '',
'Default' => '0',
Expand Down Expand Up @@ -1283,7 +1283,7 @@ public function testChangeColumnWithOnUpdate() {
array(
(object) array(
'Field' => 'id',
'Type' => 'int(11)',
'Type' => 'int',
'Null' => 'NO',
'Key' => '',
'Default' => '0',
Expand Down Expand Up @@ -1325,18 +1325,18 @@ public function testAlterTableWithColumnFirstAndAfter() {
array(
(object) array(
'Field' => 'id',
'Type' => 'int(11)',
'Type' => 'int',
'Null' => 'NO',
'Key' => '',
'Default' => '0',
'Default' => null,
'Extra' => '',
),
(object) array(
'Field' => 'name',
'Type' => 'varchar(20)',
'Null' => 'NO',
'Key' => '',
'Default' => null,
'Default' => '',
'Extra' => '',
),
(object) array(
Expand All @@ -1360,10 +1360,10 @@ public function testAlterTableWithColumnFirstAndAfter() {
array(
(object) array(
'Field' => 'id',
'Type' => 'int(11)',
'Type' => 'int',
'Null' => 'NO',
'Key' => '',
'Default' => '0',
'Default' => null,
'Extra' => '',
),
(object) array(
Expand Down Expand Up @@ -1403,7 +1403,7 @@ public function testAlterTableWithColumnFirstAndAfter() {
array(
(object) array(
'Field' => 'id',
'Type' => 'int(11)',
'Type' => 'int',
'Null' => 'NO',
'Key' => '',
'Default' => '0',
Expand Down Expand Up @@ -1446,7 +1446,7 @@ public function testAlterTableWithColumnFirstAndAfter() {
array(
(object) array(
'Field' => 'id',
'Type' => 'int(11)',
'Type' => 'int',
'Null' => 'NO',
'Key' => '',
'Default' => '0',
Expand All @@ -1457,7 +1457,7 @@ public function testAlterTableWithColumnFirstAndAfter() {
'Type' => 'varchar(20)',
'Null' => 'NO',
'Key' => '',
'Default' => null,
'Default' => '',
'Extra' => '',
),
(object) array(
Expand Down Expand Up @@ -1500,10 +1500,10 @@ public function testAlterTableWithMultiColumnFirstAndAfter() {
array(
(object) array(
'Field' => 'id',
'Type' => 'int(11)',
'Type' => 'int',
'Null' => 'NO',
'Key' => '',
'Default' => '0',
'Default' => null,
'Extra' => '',
),
(object) array(
Expand Down Expand Up @@ -1546,31 +1546,31 @@ public function testAlterTableWithMultiColumnFirstAndAfter() {
array(
(object) array(
'Field' => 'id',
'Type' => 'int(11)',
'Type' => 'int',
'Null' => 'NO',
'Key' => '',
'Default' => '0',
'Default' => null,
'Extra' => '',
),
(object) array(
'Field' => 'new1',
'Type' => 'int(11)',
'Type' => 'int',
'Null' => 'NO',
'Key' => '',
'Default' => null,
'Extra' => '',
),
(object) array(
'Field' => 'new2',
'Type' => 'int(11)',
'Type' => 'int',
'Null' => 'NO',
'Key' => '',
'Default' => '',
'Extra' => '',
),
(object) array(
'Field' => 'new3',
'Type' => 'int(11)',
'Type' => 'int',
'Null' => 'NO',
'Key' => '',
'Default' => '',
Expand Down Expand Up @@ -2408,15 +2408,15 @@ public function testDescribeAccurate() {
array(
(object) array(
'Field' => 'object_id',
'Type' => 'bigint(20) unsigned',
'Type' => 'bigint unsigned',
'Null' => 'NO',
'Key' => 'PRI',
'Default' => '0',
'Extra' => '',
),
(object) array(
'Field' => 'term_taxonomy_id',
'Type' => 'bigint(20) unsigned',
'Type' => 'bigint unsigned',
'Null' => 'NO',
'Key' => 'PRI',
'Default' => '0',
Expand Down Expand Up @@ -2457,7 +2457,7 @@ public function testAlterTableAddColumnChangesMySQLDataType() {
array(
(object) array(
'Field' => 'object_id',
'Type' => 'bigint(20) unsigned',
'Type' => 'bigint unsigned',
'Null' => 'NO',
'Key' => '',
'Default' => '0',
Expand Down
Loading

0 comments on commit 8af4cb5

Please sign in to comment.