Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit ae0cd50

Browse files
committed
Add constraint as a column name to the test
1 parent eba8ab5 commit ae0cd50

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/WP_SQLite_Translator_Tests.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,7 +1258,7 @@ public function testTypeKeywordsAsKeyNames() {
12581258
'CREATE TABLE `_tmp_table` (
12591259
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
12601260
`timestamp` datetime NOT NULL,
1261-
`numeric` int(11) NOT NULL,
1261+
`INDEX` timestamp,
12621262
PRIMARY KEY (`id`),
12631263
KEY `timestamp` (`timestamp`),
12641264
KEY numeric (numeric)
@@ -1284,11 +1284,11 @@ public function testTypeKeywordsAsKeyNames() {
12841284
'Extra' => '',
12851285
),
12861286
(object) array(
1287-
'Field' => 'numeric',
1288-
'Type' => 'int(11)',
1289-
'Null' => 'NO',
1287+
'Field' => 'INDEX',
1288+
'Type' => 'timestamp',
1289+
'Null' => 'YES',
12901290
'Key' => '',
1291-
'Default' => '0',
1291+
'Default' => null,
12921292
'Extra' => '',
12931293
),
12941294
),

0 commit comments

Comments
 (0)