Advertisement
Guest User

Untitled

a guest
Feb 19th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- Table: prices.detail
  2.  
  3. -- DROP TABLE prices.detail;
  4.  
  5. CREATE TABLE prices.detail
  6. (
  7.   article character varying(128) NOT NULL,
  8.   name character varying(256) NOT NULL,
  9.   description character varying(256),
  10.   brand_id integer,
  11.   brand_name character varying(128),
  12.   brand_name_temp character varying(128),
  13.   detail_id serial NOT NULL,
  14.   CONSTRAINT detail_pkey PRIMARY KEY (detail_id),
  15.   CONSTRAINT detail_brand_fkey FOREIGN KEY (brand_id)
  16.       REFERENCES prices.brand (brand_id) MATCH SIMPLE
  17.       ON UPDATE NO ACTION ON DELETE NO ACTION
  18. )
  19. WITH (
  20.   OIDS=FALSE
  21. );
  22. ALTER TABLE prices.detail
  23.   OWNER TO koan;
  24.  
  25. -- Index: prices.detail_article_idx
  26.  
  27. -- DROP INDEX prices.detail_article_idx;
  28.  
  29. CREATE INDEX detail_article_idx
  30.   ON prices.detail
  31.   USING gin
  32.   (article COLLATE pg_catalog."default" gin_trgm_ops);
  33.  
  34. -- Index: prices.detail_article_idx1
  35.  
  36. -- DROP INDEX prices.detail_article_idx1;
  37.  
  38. CREATE INDEX detail_article_idx1
  39.   ON prices.detail
  40.   USING hash
  41.   (article COLLATE pg_catalog."default");
  42.  
  43. -- Index: prices.fki_detail_brand_fkey
  44.  
  45. -- DROP INDEX prices.fki_detail_brand_fkey;
  46.  
  47. CREATE INDEX fki_detail_brand_fkey
  48.   ON prices.detail
  49.   USING btree
  50.   (brand_id);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement