Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Apr 24, 2024
1 parent 7f3f395 commit 79f753f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/WP_SQLite_Translator_Tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,12 +256,12 @@ public function testSelectFromDual() {
public function testShowCreateTable1() {
$this->assertQuery(
"CREATE TABLE _tmp_table (
ID BIGINT PRIMARY KEY AUTO_INCREMENT NOT NULL,
option_name VARCHAR(255) default '',
option_value TEXT NOT NULL,
UNIQUE KEY option_name (option_name),
KEY composite (option_name, option_value)
);"
ID BIGINT PRIMARY KEY AUTO_INCREMENT NOT NULL,
option_name VARCHAR(255) default '',
option_value TEXT NOT NULL,
UNIQUE KEY option_name (option_name),
KEY composite (option_name, option_value)
);"
);

$this->assertQuery(
Expand Down Expand Up @@ -324,7 +324,7 @@ public function testShowCreateTableWithAlterAndCreateIndex() {
'CREATE TABLE _tmp_table (
`ID` bigint PRIMARY KEY AUTO_INCREMENT NOT NULL,
`option_name` smallint NOT NULL DEFAULT 14,
`option_value` text NOT NULL,
`option_value` text NOT NULL DEFAULT \'\',
KEY _tmp_table__option_name (option_name)
);',
$results[0]->{'Create Table'}
Expand Down

0 comments on commit 79f753f

Please sign in to comment.