/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

  1. DROP TABLE IF EXISTS petapoco;
  2. CREATE TABLE petapoco (
  3. id bigserial NOT NULL,
  4. title varchar(127) NOT NULL,
  5. draft boolean NOT NULL,
  6. date_created timestamp NOT NULL,
  7. date_edited timestamp NULL,
  8. content text NOT NULL,
  9. state int NOT NULL,
  10. "col w space" int,
  11. nullreal real NULL,
  12. PRIMARY KEY (id)
  13. );
  14. DROP TABLE IF EXISTS petapoco2;
  15. CREATE TABLE petapoco2 (
  16. email varchar(127) NOT NULL,
  17. name varchar(127) NOT NULL,
  18. PRIMARY KEY (email)
  19. );