Skip to content

Commit 325a82d

Browse files
committed
Testing behat directly in the github action, just great. Part3
No more int, just a date column primary id.
1 parent d293dd2 commit 325a82d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

features/db-columns.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ Feature: Display information about a given table.
4343

4444
Scenario: Display information about a non default WordPress table
4545
Given a WP install
46-
And I run `wp db query "CREATE TABLE not_wp ( id tinyint(3) NOT NULL AUTO_INCREMENT, awesome_stuff TEXT, PRIMARY KEY (id) );"`
46+
And I run `wp db query "CREATE TABLE not_wp ( date DATE NOT NULL, awesome_stuff TEXT, PRIMARY KEY (date) );;"`
4747

4848
When I try `wp db columns not_wp`
4949
Then STDOUT should be a table containing rows:
50-
| Field | Type | Null | Key | Default | Extra |
51-
| id | tinyint(3) | NO | PRI | | auto_increment |
52-
| awesome_stuff | text | YES | | | |
50+
| Field | Type | Null | Key | Default | Extra |
51+
| date | date | NO | PRI | | |
52+
| awesome_stuff | text | YES | | | |

0 commit comments

Comments
 (0)