Merge 'trunk' into 'DBIx-Class-current'
[dbsrgits/DBIx-Class.git] / t / lib / sqlite.sql
CommitLineData
0009fa49 1--
2-- Created by SQL::Translator::Producer::SQLite
0a298c73 3-- Created on Thu Mar 23 19:41:26 2006
0009fa49 4--
5BEGIN TRANSACTION;
6
7--
0a298c73 8-- Table: serialized
9--
10CREATE TABLE serialized (
11 id INTEGER PRIMARY KEY NOT NULL,
12 serialized text NOT NULL
13);
14
15--
80021def 16-- Table: employees_positioned
17--
18CREATE TABLE employees_positioned (
19 employee_id INTEGER PRIMARY KEY NOT NULL,
20 position integer NOT NULL,
169bb185 21 group_id integer,
80021def 22 name varchar(100)
23);
24
25--
0a298c73 26-- Table: employees_adjacencylist
0009fa49 27--
0a298c73 28CREATE TABLE employees_adjacencylist (
29 employee_id INTEGER PRIMARY KEY NOT NULL,
30 parent_id integer NOT NULL,
31 position integer,
32 name varchar(100)
0009fa49 33);
34
35--
8fcf21b3 36-- Table: liner_notes
37--
38CREATE TABLE liner_notes (
39 liner_id INTEGER PRIMARY KEY NOT NULL,
40 notes varchar(100) NOT NULL
41);
42
43--
0a298c73 44-- Table: cd_to_producer
0009fa49 45--
0a298c73 46CREATE TABLE cd_to_producer (
47 cd integer NOT NULL,
48 producer integer NOT NULL,
49 PRIMARY KEY (cd, producer)
0009fa49 50);
51
52--
53-- Table: artist
54--
55CREATE TABLE artist (
56 artistid INTEGER PRIMARY KEY NOT NULL,
80021def 57 name varchar(100)
58);
59
60--
0009fa49 61-- Table: self_ref_alias
62--
63CREATE TABLE self_ref_alias (
64 self_ref integer NOT NULL,
887ce227 65 alias integer NOT NULL,
66 PRIMARY KEY (self_ref, alias)
0009fa49 67);
68
69--
0009fa49 70-- Table: cd
71--
72CREATE TABLE cd (
73 cdid INTEGER PRIMARY KEY NOT NULL,
74 artist integer NOT NULL,
8fcf21b3 75 title varchar(100) NOT NULL,
76 year varchar(100) NOT NULL
0009fa49 77);
78
79--
0009fa49 80-- Table: track
81--
82CREATE TABLE track (
83 trackid INTEGER PRIMARY KEY NOT NULL,
84 cd integer NOT NULL,
85 position integer NOT NULL,
8fcf21b3 86 title varchar(100) NOT NULL
0009fa49 87);
88
89--
0a298c73 90-- Table: self_ref
1c339d71 91--
0a298c73 92CREATE TABLE self_ref (
80021def 93 id INTEGER PRIMARY KEY NOT NULL,
8fcf21b3 94 name varchar(100) NOT NULL
0009fa49 95);
96
97--
98-- Table: tags
99--
100CREATE TABLE tags (
333cce60 101 tagid INTEGER PRIMARY KEY NOT NULL,
0009fa49 102 cd integer NOT NULL,
8fcf21b3 103 tag varchar(100) NOT NULL
0009fa49 104);
105
887ce227 106--
0a298c73 107-- Table: treelike
887ce227 108--
0a298c73 109CREATE TABLE treelike (
887ce227 110 id INTEGER PRIMARY KEY NOT NULL,
0a298c73 111 parent integer NOT NULL,
8fcf21b3 112 name varchar(100) NOT NULL
887ce227 113);
114
9fcda149 115--
80021def 116-- Table: twokeys
9fcda149 117--
80021def 118CREATE TABLE twokeys (
119 artist integer NOT NULL,
120 cd integer NOT NULL,
121 PRIMARY KEY (artist, cd)
122);
123
124--
125-- Table: fourkeys
126--
127CREATE TABLE fourkeys (
128 foo integer NOT NULL,
129 bar integer NOT NULL,
130 hello integer NOT NULL,
131 goodbye integer NOT NULL,
132 PRIMARY KEY (foo, bar, hello, goodbye)
133);
134
135--
136-- Table: artist_undirected_map
137--
138CREATE TABLE artist_undirected_map (
139 id1 integer NOT NULL,
140 id2 integer NOT NULL,
141 PRIMARY KEY (id1, id2)
142);
143
144--
0a298c73 145-- Table: producer
146--
147CREATE TABLE producer (
148 producerid INTEGER PRIMARY KEY NOT NULL,
149 name varchar(100) NOT NULL
150);
151
152--
80021def 153-- Table: onekey
154--
155CREATE TABLE onekey (
8fcf21b3 156 id INTEGER PRIMARY KEY NOT NULL,
80021def 157 artist integer NOT NULL,
158 cd integer NOT NULL
159);
160
0009fa49 161COMMIT;