1
0

1.sql 253 B

1234567891011121314151617
  1. # --- !Ups
  2. CREATE TABLE words (
  3. id serial PRIMARY KEY,
  4. word text NOT NULL
  5. );
  6. CREATE TABLE taboo (
  7. id serial PRIMARY KEY,
  8. word_id integer NOT NULL REFERENCES words(id),
  9. word text NOT NULL
  10. );
  11. # --- !Downs
  12. DROP TABLE taboo;
  13. DROP TABLE words;