Skip to content
Snippets Groups Projects
Commit c6879ef0 authored by Anton Bagliy's avatar Anton Bagliy
Browse files

WIP: storing faqs in db instead of twig view #411

parent ce755136
Branches
No related merge requests found
CREATE SEQUENCE seq_faq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
DROP TABLE IF EXISTS faq;
CREATE TABLE faq (
id integer DEFAULT nextval('seq_faq'::regclass) NOT NULL,
question CHARACTER VARYING NOT NULL,
answer CHARACTER VARYING NOT NULL,
colour VARCHAR(6),
popularity INTEGER DEFAULT 0 NOT NULL,
date_added timestamp(0) without time zone DEFAULT now() NOT NULL
);
ALTER TABLE ONLY faq
ADD CONSTRAINT faq_pkey PRIMARY KEY (id);
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment