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

« back to all changes in this revision

Viewing changes to src/test/resources/cz/startnet/utils/pgdiff/add_unique_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
-- Name: inventoryitemsupplier; Type: TABLE; Schema: public; Owner: intranet; Tablespace:
 
3
--
 
4
 
 
5
CREATE TABLE inventoryitemsupplier (
 
6
    id integer NOT NULL,
 
7
    code character varying(20) NOT NULL,
 
8
    partneridentificationid integer NOT NULL,
 
9
    inventoryitemid integer NOT NULL,
 
10
    createdbyuserid smallint NOT NULL,
 
11
    datecreated timestamp without time zone NOT NULL,
 
12
    datedeleted timestamp without time zone,
 
13
    datelastmodified timestamp without time zone,
 
14
    deletedbyuserid smallint,
 
15
    lastmodifiedbyuserid smallint
 
16
);
 
17
 
 
18
 
 
19
ALTER TABLE public.inventoryitemsupplier OWNER TO intranet;
 
20
 
 
21
--
 
22
-- Name: inventoryitemsupplier_seq; Type: SEQUENCE; Schema: public; Owner: intranet
 
23
--
 
24
 
 
25
CREATE SEQUENCE inventoryitemsupplier_seq
 
26
    INCREMENT BY 1
 
27
    NO MAXVALUE
 
28
    NO MINVALUE
 
29
    CACHE 1;
 
30
 
 
31
 
 
32
ALTER TABLE public.inventoryitemsupplier_seq OWNER TO intranet;
 
33
 
 
34
--
 
35
-- Name: inventoryitemsupplier_inventoryitemid_key; Type: INDEX; Schema: public; Owner: intranet; Tablespace:
 
36
--
 
37
 
 
38
CREATE INDEX inventoryitemsupplier_inventoryitemid_key ON inventoryitemsupplier USING btree (inventoryitemid);
 
39
 
 
40
 
 
41
--
 
42
-- Name: inventoryitemsupplier_partneridentificationid_key; Type: INDEX; Schema: public; Owner: intranet; Tablespace:
 
43
--
 
44
 
 
45
CREATE INDEX inventoryitemsupplier_partneridentificationid_key ON inventoryitemsupplier USING btree (partneridentificationid);
 
46
 
 
47