Navigation Menu

Skip to content

Commit

Permalink
Added test for generating table with json column in postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Mar 19, 2016
1 parent 89ea455 commit fd566fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/TestCase/Database/Schema/PostgresSchemaTest.php
Expand Up @@ -972,6 +972,7 @@ public function testCreateSql()
'comment' => 'This is the title',
])
->addColumn('body', ['type' => 'text'])
->addColumn('data', ['type' => 'json'])
->addColumn('created', 'datetime')
->addConstraint('primary', [
'type' => 'primary',
Expand All @@ -987,6 +988,7 @@ public function testCreateSql()
"id" SERIAL,
"title" VARCHAR NOT NULL,
"body" TEXT,
"data" JSON,
"created" TIMESTAMP,
PRIMARY KEY ("id")
)
Expand Down

0 comments on commit fd566fd

Please sign in to comment.