Multicol tests done. Also tweaked the pods and took out my debugger breakpoints.
[dbsrgits/DBIx-Class.git] / t / lib / sqlite.sql
CommitLineData
0009fa49 1--
2-- Created by SQL::Translator::Producer::SQLite
77211009 3-- Created on Tue Aug 8 01:53:20 2006
0009fa49 4--
5BEGIN TRANSACTION;
6
7--
38e48163 8-- Table: employee
4e298a80 9--
38e48163 10CREATE TABLE employee (
4e298a80 11 employee_id INTEGER PRIMARY KEY NOT NULL,
12 position integer NOT NULL,
13 group_id integer,
1d941d67 14 group_id_2 integer,
4e298a80 15 name varchar(100)
16);
17
18--
8fcf21b3 19-- Table: serialized
20--
21CREATE TABLE serialized (
22 id INTEGER PRIMARY KEY NOT NULL,
23 serialized text NOT NULL
24);
25
26--
8fcf21b3 27-- Table: liner_notes
28--
29CREATE TABLE liner_notes (
30 liner_id INTEGER PRIMARY KEY NOT NULL,
31 notes varchar(100) NOT NULL
32);
33
34--
0009fa49 35-- Table: cd_to_producer
36--
37CREATE TABLE cd_to_producer (
38 cd integer NOT NULL,
39 producer integer NOT NULL,
40 PRIMARY KEY (cd, producer)
41);
42
43--
44-- Table: artist
45--
46CREATE TABLE artist (
47 artistid INTEGER PRIMARY KEY NOT NULL,
8fcf21b3 48 name varchar(100)
0009fa49 49);
50
51--
9c2c91ea 52-- Table: twokeytreelike
53--
54CREATE TABLE twokeytreelike (
55 id1 integer NOT NULL,
56 id2 integer NOT NULL,
57 parent1 integer NOT NULL,
58 parent2 integer NOT NULL,
59 name varchar(100) NOT NULL,
60 PRIMARY KEY (id1, id2)
61);
62
63--
3bd6e3e0 64-- Table: fourkeys_to_twokeys
65--
66CREATE TABLE fourkeys_to_twokeys (
67 f_foo integer NOT NULL,
68 f_bar integer NOT NULL,
69 f_hello integer NOT NULL,
70 f_goodbye integer NOT NULL,
71 t_artist integer NOT NULL,
72 t_cd integer NOT NULL,
73 autopilot character NOT NULL,
74 PRIMARY KEY (f_foo, f_bar, f_hello, f_goodbye, t_artist, t_cd)
75);
76
77--
0009fa49 78-- Table: self_ref_alias
79--
80CREATE TABLE self_ref_alias (
81 self_ref integer NOT NULL,
887ce227 82 alias integer NOT NULL,
83 PRIMARY KEY (self_ref, alias)
0009fa49 84);
85
86--
0009fa49 87-- Table: cd
88--
89CREATE TABLE cd (
90 cdid INTEGER PRIMARY KEY NOT NULL,
91 artist integer NOT NULL,
8fcf21b3 92 title varchar(100) NOT NULL,
93 year varchar(100) NOT NULL
0009fa49 94);
95
96--
9c2c91ea 97-- Table: bookmark
0009fa49 98--
9c2c91ea 99CREATE TABLE bookmark (
0009fa49 100 id INTEGER PRIMARY KEY NOT NULL,
9c2c91ea 101 link integer NOT NULL
0009fa49 102);
103
104--
105-- Table: track
106--
107CREATE TABLE track (
108 trackid INTEGER PRIMARY KEY NOT NULL,
109 cd integer NOT NULL,
110 position integer NOT NULL,
8fcf21b3 111 title varchar(100) NOT NULL
0009fa49 112);
113
114--
3bd6e3e0 115-- Table: self_ref
887ce227 116--
3bd6e3e0 117CREATE TABLE self_ref (
887ce227 118 id INTEGER PRIMARY KEY NOT NULL,
8fcf21b3 119 name varchar(100) NOT NULL
887ce227 120);
121
9fcda149 122--
ab8481f5 123-- Table: link
124--
125CREATE TABLE link (
126 id INTEGER PRIMARY KEY NOT NULL,
127 url varchar(100),
128 title varchar(100)
129);
130
131--
77211009 132-- Table: tags
133--
134CREATE TABLE tags (
135 tagid INTEGER PRIMARY KEY NOT NULL,
136 cd integer NOT NULL,
137 tag varchar(100) NOT NULL
138);
139
140--
9c2c91ea 141-- Table: treelike
142--
143CREATE TABLE treelike (
144 id INTEGER PRIMARY KEY NOT NULL,
145 parent integer NOT NULL,
8fcf21b3 146 name varchar(100) NOT NULL
0009fa49 147);
148
149--
f86fcf0d 150-- Table: event
0009fa49 151--
f86fcf0d 152CREATE TABLE event (
153 id INTEGER PRIMARY KEY NOT NULL,
c03ccdbc 154 starts_at datetime NOT NULL,
155 created_on timestamp NOT NULL
0009fa49 156);
157
887ce227 158--
9c2c91ea 159-- Table: twokeys
887ce227 160--
9c2c91ea 161CREATE TABLE twokeys (
162 artist integer NOT NULL,
163 cd integer NOT NULL,
164 PRIMARY KEY (artist, cd)
165);
166
167--
89034887 168-- Table: noprimarykey
169--
170CREATE TABLE noprimarykey (
171 foo integer NOT NULL,
172 bar integer NOT NULL,
173 baz integer NOT NULL
174);
175
176--
9c2c91ea 177-- Table: fourkeys
178--
179CREATE TABLE fourkeys (
180 foo integer NOT NULL,
181 bar integer NOT NULL,
182 hello integer NOT NULL,
183 goodbye integer NOT NULL,
3bd6e3e0 184 sensors character NOT NULL,
9c2c91ea 185 PRIMARY KEY (foo, bar, hello, goodbye)
186);
187
188--
189-- Table: artist_undirected_map
190--
191CREATE TABLE artist_undirected_map (
192 id1 integer NOT NULL,
193 id2 integer NOT NULL,
194 PRIMARY KEY (id1, id2)
195);
196
197--
198-- Table: producer
199--
200CREATE TABLE producer (
201 producerid INTEGER PRIMARY KEY NOT NULL,
8fcf21b3 202 name varchar(100) NOT NULL
887ce227 203);
204
9fcda149 205--
9c2c91ea 206-- Table: onekey
9fcda149 207--
9c2c91ea 208CREATE TABLE onekey (
8fcf21b3 209 id INTEGER PRIMARY KEY NOT NULL,
9c2c91ea 210 artist integer NOT NULL,
211 cd integer NOT NULL
9fcda149 212);
213
78060df8 214--
215-- Table: typed_object
216--
217CREATE TABLE typed_object (
218 objectid INTEGER PRIMARY KEY NOT NULL,
219 type VARCHAR(100) NOT NULL,
220 value VARCHAR(100)
221);
222
223--
224-- Table: collection
225--
226CREATE TABLE collection (
227 collectionid INTEGER PRIMARY KEY NOT NULL,
228 name VARCHAR(100)
229);
230
231--
232-- Table: collection_object
233--
234CREATE TABLE collection_object (
235 collection INTEGER NOT NULL,
236 object INTEGER NOT NULL
237);
238
239--
240-- Table: owners
241--
242CREATE TABLE owners (
243 ownerid INTEGER PRIMARY KEY NOT NULL,
244 name varchar(100)
245);
246
247--
248-- Table: books
249--
250CREATE TABLE books (
251 id INTEGER PRIMARY KEY NOT NULL,
252 owner INTEGER,
253 source varchar(100),
254 title varchar(100)
255);
256
257
38e48163 258CREATE UNIQUE INDEX tktlnameunique_twokeytreelike on twokeytreelike (name);
368a5228 259CREATE UNIQUE INDEX cd_artist_title_cd on cd (artist, title);
365d06b7 260CREATE UNIQUE INDEX track_cd_position_track on track (cd, position);
261CREATE UNIQUE INDEX track_cd_title_track on track (cd, title);
89034887 262CREATE UNIQUE INDEX foo_bar_noprimarykey on noprimarykey (foo, bar);
368a5228 263CREATE UNIQUE INDEX prod_name_producer on producer (name);
0009fa49 264COMMIT;