Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

841 B
Raw Blame
DROP TABLE IF EXISTS product_content;

CREATE TABLE product_content (
  "product_id" int check ("product_id" > 0) NOT NULL,
  "language_id" int check ("language_id" > 0) NOT NULL,
  "name" varchar(191) NOT NULL DEFAULT '',
  "slug" varchar(191) NOT NULL DEFAULT '',
  "content" text DEFAULT NULL,
  "excerpt" text,
  "meta_title" varchar(191) NOT NULL DEFAULT '',
  "meta_description" varchar(191) NOT NULL DEFAULT '',
  "meta_keywords" varchar(191) NOT NULL DEFAULT '',
  PRIMARY KEY ("product_id","language_id")
);

CREATE INDEX "product_content_slug" ON product_content ("slug");
CREATE INDEX "product_content_name" ON product_content USING gin (to_tsvector('english', name));
CREATE INDEX "product_content_content" ON product_content USING gin (to_tsvector('english', content));

-- CREATE INDEX FULLTEXT KEY "search" ("name","content")