21.05.2014 Views

Unit Test Your Database! - PGCon

Unit Test Your Database! - PGCon

Unit Test Your Database! - PGCon

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Make Users<br />

> sqitch deploy -­‐-­‐untracked<br />

Deploying HEAD+ to flipr_test<br />

+ users<br />

> psql -­‐d flipr_test -­‐c '\d users'<br />

Table "public.users"<br />

Column | Type | Modifiers <br />

-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐<br />

nickname | text | not null<br />

password | text | not null<br />

timestamp | timestamptz | not null default now()<br />

Indexes:<br />

"users_pkey" PRIMARY KEY, btree (nickname)<br />

>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!