~ubuntu-branches/ubuntu/raring/apgdiff/raring

« back to all changes in this revision

Viewing changes to src/test/resources/cz/startnet/utils/pgdiff/add_defaults_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 standard_conforming_strings = off;
 
7
SET check_function_bodies = false;
 
8
SET client_min_messages = warning;
 
9
SET escape_string_warning = off;
 
10
 
 
11
--
 
12
-- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: postgres
 
13
--
 
14
 
 
15
COMMENT ON SCHEMA public IS 'Standard public schema';
 
16
 
 
17
 
 
18
SET search_path = public, pg_catalog;
 
19
 
 
20
SET default_tablespace = '';
 
21
 
 
22
SET default_with_oids = false;
 
23
 
 
24
--
 
25
-- Name: testtable; Type: TABLE; Schema: public; Owner: fordfrog; Tablespace: 
 
26
--
 
27
 
 
28
CREATE TABLE testtable (
 
29
    id integer NOT NULL,
 
30
    col1 smallint,
 
31
    col2 character varying(20)
 
32
);
 
33
 
 
34
 
 
35
ALTER TABLE public.testtable OWNER TO fordfrog;
 
36
 
 
37
--
 
38
-- Name: testtable_id_seq; Type: SEQUENCE; Schema: public; Owner: fordfrog
 
39
--
 
40
 
 
41
CREATE SEQUENCE testtable_id_seq
 
42
    START WITH 1
 
43
    INCREMENT BY 1
 
44
    NO MAXVALUE
 
45
    NO MINVALUE
 
46
    CACHE 1;
 
47
 
 
48
 
 
49
ALTER TABLE public.testtable_id_seq OWNER TO fordfrog;
 
50
 
 
51
--
 
52
-- Name: testtable_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: fordfrog
 
53
--
 
54
 
 
55
ALTER SEQUENCE testtable_id_seq OWNED BY testtable.id;
 
56
 
 
57
 
 
58
--
 
59
-- Name: testtable_id_seq; Type: SEQUENCE SET; Schema: public; Owner: fordfrog
 
60
--
 
61
 
 
62
SELECT pg_catalog.setval('testtable_id_seq', 1, false);
 
63
 
 
64
 
 
65
--
 
66
-- Name: id; Type: DEFAULT; Schema: public; Owner: fordfrog
 
67
--
 
68
 
 
69
ALTER TABLE testtable ALTER COLUMN id SET DEFAULT nextval('testtable_id_seq'::regclass);
 
70
 
 
71
 
 
72
--
 
73
-- Data for Name: testtable; Type: TABLE DATA; Schema: public; Owner: fordfrog
 
74
--
 
75
 
 
76
 
 
77
 
 
78
--
 
79
-- Name: public; Type: ACL; Schema: -; Owner: postgres
 
80
--
 
81
 
 
82
REVOKE ALL ON SCHEMA public FROM PUBLIC;
 
83
REVOKE ALL ON SCHEMA public FROM postgres;
 
84
GRANT ALL ON SCHEMA public TO postgres;
 
85
GRANT ALL ON SCHEMA public TO PUBLIC;
 
86
 
 
87
 
 
88
--
 
89
-- PostgreSQL database dump complete
 
90
--
 
91