
jbe@63: BEGIN;
jbe@63: 
jbe@63: CREATE OR REPLACE VIEW "liquid_feedback_version" AS
jbe@63:   SELECT * FROM (VALUES ('1.2.3', 1, 2, 3))
jbe@63:   AS "subquery"("string", "major", "minor", "revision");
jbe@63: 
jbe@63: CREATE TABLE "rendered_draft" (
jbe@63:         PRIMARY KEY ("draft_id", "format"),
jbe@63:         "draft_id"              INT8            REFERENCES "draft" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
jbe@63:         "format"                TEXT,
jbe@63:         "content"               TEXT            NOT NULL );
jbe@63: 
jbe@63: COMMENT ON TABLE "rendered_draft" IS 'This table may be used by frontends to cache "rendered" drafts (e.g. HTML output generated from wiki text)';
jbe@63: 
jbe@63: COMMIT;




