X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2Fsqlite.sql;h=91782638003979b3ce588ef6b1482693474c3377;hb=e29e2b27d08d645f8a50d7ffafef28c67688207e;hp=ba1ffae6d7ea70477fd83cfa00a88ae1eedef4b8;hpb=6f546d659c5f4207286d0be33f15ce237b9968b9;p=dbsrgits%2FDBIx-Class.git diff --git a/t/lib/sqlite.sql b/t/lib/sqlite.sql index ba1ffae..9178263 100644 --- a/t/lib/sqlite.sql +++ b/t/lib/sqlite.sql @@ -1,6 +1,6 @@ -- -- Created by SQL::Translator::Producer::SQLite --- Created on Tue Mar 16 16:49:23 2010 +-- Created on Sun Oct 17 01:51:06 2010 -- -- @@ -9,12 +9,16 @@ CREATE TABLE artist ( artistid INTEGER PRIMARY KEY NOT NULL, name varchar(100), - rank integer NOT NULL DEFAULT '13', + rank integer NOT NULL DEFAULT 13, charfield char(10) ); CREATE INDEX artist_name_hookidx ON artist (name); +CREATE UNIQUE INDEX artist_name ON artist (name); + +CREATE UNIQUE INDEX u_nullable ON artist (charfield, rank); + -- -- Table: bindtype_test -- @@ -168,6 +172,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 ( @@ -239,6 +251,8 @@ CREATE TABLE books ( CREATE INDEX books_idx_owner ON books (owner); +CREATE UNIQUE INDEX books_title ON books (title); + -- -- Table: employee -- @@ -374,6 +388,14 @@ CREATE TABLE tags ( CREATE INDEX tags_idx_cd ON tags (cd); +CREATE UNIQUE INDEX tagid_cd ON tags (tagid, cd); + +CREATE UNIQUE INDEX tagid_cd_tag ON tags (tagid, cd, tag); + +CREATE UNIQUE INDEX tags_tagid_tag ON tags (tagid, tag); + +CREATE UNIQUE INDEX tags_tagid_tag_cd ON tags (tagid, tag, cd); + -- -- Table: cd_to_producer --