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