New parser sort functions fulfills its purpose but appears to make deploy_depends_on...
[dbsrgits/DBIx-Class.git] / t / sql / ViewDeps-0.1-PostgreSQL.sql
CommitLineData
9efcc79f 1--
2-- Created by SQL::Translator::Producer::PostgreSQL
3-- Created on Fri May 28 08:01:56 2010
4--
5--
6-- Table: just_a_table
7--
8DROP TABLE "just_a_table" CASCADE;
9CREATE TABLE "just_a_table" (
10 "id" serial NOT NULL,
11 "name" character varying(255) NOT NULL,
12 PRIMARY KEY ("id")
13);
14
15--
16-- Table: mixin
17--
18DROP TABLE "mixin" CASCADE;
19CREATE TABLE "mixin" (
20 "id" serial NOT NULL,
21 "words" text NOT NULL,
22 PRIMARY KEY ("id")
23);
24
25--
26-- Table: baz
27--
28DROP TABLE "baz" CASCADE;
29CREATE TABLE "baz" (
30 "id" integer NOT NULL
31);
32CREATE INDEX "baz_idx_b" on "baz" ("b");
33
34--
35-- View: "bar"
36--
37DROP VIEW "bar";
38CREATE VIEW "bar" ( "id", "a", "b" ) AS
39 select * from just_a_table
40;
41
42--
43-- View: "foo"
44--
45DROP VIEW "foo";
46CREATE VIEW "foo" ( "id", "a" ) AS
47 select * from just_a_table
48;
49
50--
51-- Foreign Key Definitions
52--
53
54ALTER TABLE "baz" ADD FOREIGN KEY ("b")
55 REFERENCES "just_a_table" ("id") DEFERRABLE;
56