X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2Fsqlite.sql;h=d90842da94e78a73527145268bcf59ffb000e835;hb=3814fdaddf1c49d2a8055c6da60cd93a1b513ad7;hp=86e345e7dbc61879a3b6136bf198fb5fd29f1d9d;hpb=c0678cfc834ffbaebc2860104bec62008fe82b8d;p=dbsrgits%2FDBIx-Class.git diff --git a/t/lib/sqlite.sql b/t/lib/sqlite.sql index 86e345e..d90842d 100644 --- a/t/lib/sqlite.sql +++ b/t/lib/sqlite.sql @@ -1,10 +1,8 @@ -- -- Created by SQL::Translator::Producer::SQLite --- Created on Wed Aug 12 16:10:43 2009 +-- Created on Sat Mar 6 12:26:40 2010 -- - - -BEGIN TRANSACTION; +; -- -- Table: artist @@ -16,6 +14,8 @@ CREATE TABLE artist ( charfield char(10) ); +CREATE INDEX artist_name_hookidx ON artist (name); + -- -- Table: bindtype_test -- @@ -68,14 +68,6 @@ CREATE TABLE event ( ); -- --- Table: file_columns --- -CREATE TABLE file_columns ( - id INTEGER PRIMARY KEY NOT NULL, - file varchar(255) NOT NULL -); - --- -- Table: fourkeys -- CREATE TABLE fourkeys ( @@ -260,8 +252,6 @@ CREATE TABLE forceforeign ( cd integer NOT NULL ); -CREATE INDEX forceforeign_idx_artist ON forceforeign (artist); - -- -- Table: self_ref_alias -- @@ -281,7 +271,7 @@ CREATE INDEX self_ref_alias_idx_self_ref ON self_ref_alias (self_ref); CREATE TABLE track ( trackid INTEGER PRIMARY KEY NOT NULL, cd integer NOT NULL, - position integer NOT NULL, + position int NOT NULL, title varchar(100) NOT NULL, last_updated_on datetime, last_updated_at datetime, @@ -344,8 +334,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 +342,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 +437,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" \ No newline at end of file