~ubuntu-branches/ubuntu/oneiric/apgdiff/oneiric

« back to all changes in this revision

Viewing changes to src/test/resources/cz/startnet/utils/pgdiff/add_constraint_original.sql

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Berg
  • Date: 2008-09-09 15:42:54 UTC
  • Revision ID: james.westby@ubuntu.com-20080909154254-458sv7ew1rczdal1
Tags: upstream-1.2
ImportĀ upstreamĀ versionĀ 1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--
 
2
-- PostgreSQL database dump
 
3
--
 
4
 
 
5
SET client_encoding = 'UTF8';
 
6
SET check_function_bodies = false;
 
7
SET client_min_messages = warning;
 
8
 
 
9
--
 
10
-- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: postgres
 
11
--
 
12
 
 
13
COMMENT ON SCHEMA public IS 'Standard public schema';
 
14
 
 
15
 
 
16
SET search_path = public, pg_catalog;
 
17
 
 
18
SET default_tablespace = '';
 
19
 
 
20
SET default_with_oids = false;
 
21
 
 
22
--
 
23
-- Name: testtable; Type: TABLE; Schema: public; Owner: fordfrog; Tablespace: 
 
24
--
 
25
 
 
26
CREATE TABLE testtable (
 
27
    field1 integer,
 
28
    field2 integer,
 
29
    field3 character varying(150) DEFAULT 'none'::character varying,
 
30
    field4 double precision,
 
31
    "full" timestamp with time zone DEFAULT '2006-11-10 00:00:00+01'::timestamp with time zone NOT NULL
 
32
);
 
33
ALTER TABLE ONLY testtable ALTER COLUMN "full" SET STATISTICS 200;
 
34
 
 
35
 
 
36
ALTER TABLE public.testtable OWNER TO fordfrog;
 
37
 
 
38
--
 
39
-- Name: testindex; Type: INDEX; Schema: public; Owner: fordfrog; Tablespace: 
 
40
--
 
41
 
 
42
CREATE INDEX testindex ON testtable USING btree (field3);
 
43
 
 
44
 
 
45
--
 
46
-- Name: public; Type: ACL; Schema: -; Owner: postgres
 
47
--
 
48
 
 
49
REVOKE ALL ON SCHEMA public FROM PUBLIC;
 
50
REVOKE ALL ON SCHEMA public FROM postgres;
 
51
GRANT ALL ON SCHEMA public TO postgres;
 
52
GRANT ALL ON SCHEMA public TO PUBLIC;
 
53
 
 
54
 
 
55
--
 
56
-- PostgreSQL database dump complete
 
57
--
 
58