/PetaPoco.Tests/postgresql_init.sql
http://github.com/toptensoftware/PetaPoco · SQL · 24 lines · 19 code · 5 blank · 0 comment · 0 complexity · 5be45f30d94e9c5dfc450727d8ee46ea MD5 · raw file
- DROP TABLE IF EXISTS petapoco;
- CREATE TABLE petapoco (
- id bigserial NOT NULL,
- title varchar(127) NOT NULL,
- draft boolean NOT NULL,
- date_created timestamp NOT NULL,
- date_edited timestamp NULL,
- content text NOT NULL,
- state int NOT NULL,
- "col w space" int,
- nullreal real NULL,
- PRIMARY KEY (id)
- );
- DROP TABLE IF EXISTS petapoco2;
- CREATE TABLE petapoco2 (
- email varchar(127) NOT NULL,
- name varchar(127) NOT NULL,
- PRIMARY KEY (email)
- );