Skip to content

Commit

Permalink
Testing behat directly in the github action, just great. Part3
Browse files Browse the repository at this point in the history
No more int, just a date column primary id.
  • Loading branch information
janw-me committed Oct 8, 2021
1 parent a1be9ba commit fdc0da8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions features/db-columns.feature
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ Feature: Display information about a given table.

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

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

0 comments on commit fdc0da8

Please sign in to comment.