Skip to content
Permalink
Browse files

Added test for generating table with json column in postgres

  • Loading branch information...
lorenzo committed Mar 19, 2016
1 parent 89ea455 commit fd566fd131848db634196958b5cc113577059df0
Showing with 2 additions and 0 deletions.
  1. +2 −0 tests/TestCase/Database/Schema/PostgresSchemaTest.php
@@ -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',
@@ -987,6 +988,7 @@ public function testCreateSql()
"id" SERIAL,
"title" VARCHAR NOT NULL,
"body" TEXT,
"data" JSON,
"created" TIMESTAMP,
PRIMARY KEY ("id")
)

0 comments on commit fd566fd

Please sign in to comment.
You can’t perform that action at this time.