X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2Fsqlite.sql;h=26c06f4ccf3bd12ee4414edf39df8057a6fa7f69;hb=551557ca1de309c8cd61cdd6b41815ea83ff5955;hp=888ccd09eee6f43969ee7fb23c57ef0550a6e3dc;hpb=9c1a4b61a3fe975792eb6bceb57a0c456c03cfaf;p=dbsrgits%2FDBIx-Class.git diff --git a/t/lib/sqlite.sql b/t/lib/sqlite.sql index 888ccd0..26c06f4 100644 --- a/t/lib/sqlite.sql +++ b/t/lib/sqlite.sql @@ -1,8 +1,8 @@ --- Created on Tue Aug 25 12:34:34 2009 -- - - -BEGIN TRANSACTION; +-- Created by SQL::Translator::Producer::SQLite +-- Created on Sat Mar 6 18:04:27 2010 +-- +; -- -- Table: artist @@ -35,18 +35,6 @@ CREATE TABLE collection ( ); -- --- Table: employee --- -CREATE TABLE employee ( - employee_id INTEGER PRIMARY KEY NOT NULL, - position integer NOT NULL, - group_id integer, - group_id_2 integer, - group_id_3 integer, - name varchar(100) -); - --- -- Table: encoded -- CREATE TABLE encoded ( @@ -59,7 +47,7 @@ CREATE TABLE encoded ( -- CREATE TABLE event ( id INTEGER PRIMARY KEY NOT NULL, - starts_at datetime NOT NULL, + starts_at date NOT NULL, created_on timestamp NOT NULL, varchar_date varchar(20), varchar_datetime varchar(20), @@ -253,6 +241,21 @@ CREATE TABLE books ( CREATE INDEX books_idx_owner ON books (owner); -- +-- Table: employee +-- +CREATE TABLE employee ( + employee_id INTEGER PRIMARY KEY NOT NULL, + position integer NOT NULL, + group_id integer, + group_id_2 integer, + group_id_3 integer, + name varchar(100), + encoded integer +); + +CREATE INDEX employee_idx_encoded ON employee (encoded); + +-- -- Table: forceforeign -- CREATE TABLE forceforeign ( @@ -260,8 +263,6 @@ CREATE TABLE forceforeign ( cd integer NOT NULL ); -CREATE INDEX forceforeign_idx_artist ON forceforeign (artist); - -- -- Table: self_ref_alias -- @@ -344,8 +345,6 @@ CREATE TABLE cd_artwork ( cd_id INTEGER PRIMARY KEY NOT NULL ); -CREATE INDEX cd_artwork_idx_cd_id ON cd_artwork (cd_id); - -- -- Table: liner_notes -- @@ -354,8 +353,6 @@ CREATE TABLE liner_notes ( notes varchar(100) NOT NULL ); -CREATE INDEX liner_notes_idx_liner_id ON liner_notes (liner_id); - -- -- Table: lyric_versions -- @@ -451,6 +448,4 @@ CREATE INDEX fourkeys_to_twokeys_idx_t_artist_t_cd ON fourkeys_to_twokeys (t_art -- View: year2000cds -- CREATE VIEW year2000cds AS - SELECT cdid, artist, title FROM cd WHERE year ='2000'; - -COMMIT; + SELECT cdid, artist, title, year, genreid, single_track FROM cd WHERE year = "2000"