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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Berg
  • Date: 2010-10-11 09:08:18 UTC
  • mfrom: (2.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20101011090818-sdw8yfemrnxo328k
Tags: 2.2.2-1
* New upstream version.
* Using changelog included in zipfile, thanks Miroslav for providing this.
* Update manpage.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
CREATE SCHEMA admin;
 
2
 
 
3
ALTER SCHEMA admin OWNER TO postgres;
 
4
 
 
5
SET search_path = admin, pg_catalog;
 
6
 
 
7
CREATE TABLE acl_role (
 
8
    id bigint NOT NULL
 
9
);
 
10
 
 
11
ALTER TABLE admin.acl_role OWNER TO postgres;
 
12
 
 
13
ALTER TABLE ONLY acl_role
 
14
    ADD CONSTRAINT acl_role_pkey PRIMARY KEY (id);
 
15
 
 
16
CREATE TABLE "user" (
 
17
    id bigint NOT NULL,
 
18
    email character varying(255) NOT NULL,
 
19
    name character varying(255) NOT NULL,
 
20
    password character varying(40) NOT NULL,
 
21
    is_active boolean DEFAULT false NOT NULL,
 
22
    updated timestamp without time zone DEFAULT now() NOT NULL,
 
23
    created timestamp without time zone DEFAULT now() NOT NULL,
 
24
    role_id bigint NOT NULL,
 
25
    last_visit timestamp without time zone DEFAULT now() NOT NULL
 
26
);
 
27
 
 
28
ALTER TABLE admin."user" OWNER TO postgres;
 
29
 
 
30
CREATE INDEX fki_user_role_id_fkey ON "user" USING btree (role_id);
 
31
 
 
32
ALTER TABLE ONLY "user"
 
33
    ADD CONSTRAINT user_role_id_fkey FOREIGN KEY (role_id) REFERENCES acl_role(id);
 
 
b'\\ No newline at end of file'