Skip to content

Instantly share code, notes, and snippets.

@srbiv
Created June 2, 2012 17:55
Show Gist options
  • Save srbiv/2859354 to your computer and use it in GitHub Desktop.
Save srbiv/2859354 to your computer and use it in GitHub Desktop.
diff --git a/db/structure.sql b/db/structure.sql
index bb8d264..fe9e339 100644
--- a/db/structure.sql
+++ b/db/structure.sql
@@ -4,16 +4,22 @@
SET statement_timeout = 0;
SET client_encoding = 'UTF8';
-SET standard_conforming_strings = off;
+SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
-SET escape_string_warning = off;
--
--- Name: plpgsql; Type: PROCEDURAL LANGUAGE; Schema: -; Owner: -
+-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -
--
-CREATE OR REPLACE PROCEDURAL LANGUAGE plpgsql;
+CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
+
+
+--
+-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: -
+--
+
+COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
SET search_path = public, pg_catalog;
@@ -839,8 +845,8 @@ CREATE TABLE items (
active boolean DEFAULT true,
guid character varying(255),
item_presenter_id integer,
- user_id integer,
- version_of_item_id integer
+ version_of_item_id integer,
+ user_id integer
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment