X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2Fsqlite.sql;h=741375deaa316db61dc33c9d1089756d97c51abb;hb=d815b6a502529d2ba0804d86d25e648d1a0f7631;hp=22f416cd302145642fa3fd4cfaea1fa3cc35ae0d;hpb=ba19fccc5a38a4eb1eb25abbe181338f1dac9753;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/lib/sqlite.sql b/t/lib/sqlite.sql index 22f416c..741375d 100644 --- a/t/lib/sqlite.sql +++ b/t/lib/sqlite.sql @@ -1,7 +1,8 @@ -- -- Created by SQL::Translator::Producer::SQLite --- Created on Sat Mar 6 11:57:45 2010 +-- Created on Mon Mar 22 11:08:33 2010 -- +; -- -- Table: artist @@ -34,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 ( @@ -180,6 +169,14 @@ CREATE TABLE serialized ( ); -- +-- Table: timestamp_primary_key_test +-- +CREATE TABLE timestamp_primary_key_test ( + id timestamp NOT NULL DEFAULT current_timestamp, + PRIMARY KEY (id) +); + +-- -- Table: treelike -- CREATE TABLE treelike ( @@ -252,6 +249,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 ( @@ -444,4 +456,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, year, genreid, single_track FROM cd WHERE year = "2000" + SELECT cdid, artist, title, year, genreid, single_track FROM cd WHERE year = "2000" \ No newline at end of file