[Bast-commits] r5527 - in DBIx-Class/0.08/branches/views/t/lib: . DBICTest/Schema

castaway at dev.catalyst.perl.org castaway at dev.catalyst.perl.org
Wed Feb 18 22:59:29 GMT 2009


Author: castaway
Date: 2009-02-18 22:59:29 +0000 (Wed, 18 Feb 2009)
New Revision: 5527

Modified:
   DBIx-Class/0.08/branches/views/t/lib/DBICTest/Schema/Year2000CDs.pm
   DBIx-Class/0.08/branches/views/t/lib/sqlite.sql
Log:
Fix name of view.
New sqlite.sql containing test view.


Modified: DBIx-Class/0.08/branches/views/t/lib/DBICTest/Schema/Year2000CDs.pm
===================================================================
--- DBIx-Class/0.08/branches/views/t/lib/DBICTest/Schema/Year2000CDs.pm	2009-02-18 21:52:02 UTC (rev 5526)
+++ DBIx-Class/0.08/branches/views/t/lib/DBICTest/Schema/Year2000CDs.pm	2009-02-18 22:59:29 UTC (rev 5527)
@@ -6,7 +6,7 @@
 
 __PACKAGE__->table_class('DBIx::Class::ResultSource::View');
 
-__PACKAGE__->table('cd');
+__PACKAGE__->table('year2000cds');
 __PACKAGE__->result_source_instance->view_definition(
   "SELECT cdid, artist, title FROM cd WHERE year ='2000'"
 );

Modified: DBIx-Class/0.08/branches/views/t/lib/sqlite.sql
===================================================================
--- DBIx-Class/0.08/branches/views/t/lib/sqlite.sql	2009-02-18 21:52:02 UTC (rev 5526)
+++ DBIx-Class/0.08/branches/views/t/lib/sqlite.sql	2009-02-18 22:59:29 UTC (rev 5527)
@@ -1,10 +1,11 @@
 -- 
 -- Created by SQL::Translator::Producer::SQLite
--- Created on Sat Jan 17 19:40:47 2009
+-- Created on Wed Feb 18 22:31:31 2009
 -- 
+
+
 BEGIN TRANSACTION;
 
-
 --
 -- Table: artist
 --
@@ -15,7 +16,6 @@
   charfield char(10)
 );
 
-
 --
 -- Table: artist_undirected_map
 --
@@ -26,6 +26,7 @@
 );
 
 CREATE INDEX artist_undirected_map_idx_id1_ ON artist_undirected_map (id1);
+
 CREATE INDEX artist_undirected_map_idx_id2_ ON artist_undirected_map (id2);
 
 --
@@ -47,7 +48,6 @@
   clob clob
 );
 
-
 --
 -- Table: bookmark
 --
@@ -69,7 +69,6 @@
   price integer
 );
 
-
 --
 -- Table: cd
 --
@@ -83,8 +82,11 @@
 );
 
 CREATE INDEX cd_idx_artist_cd ON cd (artist);
+
 CREATE INDEX cd_idx_genreid_cd ON cd (genreid);
+
 CREATE INDEX cd_idx_single_track_cd ON cd (single_track);
+
 CREATE UNIQUE INDEX cd_artist_title_cd ON cd (artist, title);
 
 --
@@ -97,6 +99,7 @@
 );
 
 CREATE INDEX cd_to_producer_idx_cd_cd_to_pr ON cd_to_producer (cd);
+
 CREATE INDEX cd_to_producer_idx_producer_cd ON cd_to_producer (producer);
 
 --
@@ -107,7 +110,6 @@
   name varchar(100) NOT NULL
 );
 
-
 --
 -- Table: collection_object
 --
@@ -118,6 +120,7 @@
 );
 
 CREATE INDEX collection_object_idx_collection_collection_obj ON collection_object (collection);
+
 CREATE INDEX collection_object_idx_object_c ON collection_object (object);
 
 --
@@ -131,6 +134,13 @@
   name varchar(100)
 );
 
+--
+-- Table: encoded
+--
+CREATE TABLE encoded (
+  id INTEGER PRIMARY KEY NOT NULL,
+  encoded varchar(100)
+);
 
 --
 -- Table: event
@@ -144,7 +154,6 @@
   skip_inflation datetime
 );
 
-
 --
 -- Table: file_columns
 --
@@ -153,7 +162,6 @@
   file varchar(255) NOT NULL
 );
 
-
 --
 -- Table: forceforeign
 --
@@ -176,7 +184,6 @@
   PRIMARY KEY (foo, bar, hello, goodbye)
 );
 
-
 --
 -- Table: fourkeys_to_twokeys
 --
@@ -192,6 +199,7 @@
 );
 
 CREATE INDEX fourkeys_to_twokeys_idx_f_foo_f_bar_f_hello_f_goodbye_ ON fourkeys_to_twokeys (f_foo, f_bar, f_hello, f_goodbye);
+
 CREATE INDEX fourkeys_to_twokeys_idx_t_artist_t_cd_fourkeys_to ON fourkeys_to_twokeys (t_artist, t_cd);
 
 --
@@ -235,7 +243,6 @@
   title varchar(100)
 );
 
-
 --
 -- Table: lyric_versions
 --
@@ -277,7 +284,6 @@
   cd integer NOT NULL
 );
 
-
 --
 -- Table: owners
 --
@@ -286,7 +292,6 @@
   name varchar(100) NOT NULL
 );
 
-
 --
 -- Table: producer
 --
@@ -305,7 +310,6 @@
   name varchar(100) NOT NULL
 );
 
-
 --
 -- Table: self_ref_alias
 --
@@ -316,6 +320,7 @@
 );
 
 CREATE INDEX self_ref_alias_idx_alias_self_ ON self_ref_alias (alias);
+
 CREATE INDEX self_ref_alias_idx_self_ref_se ON self_ref_alias (self_ref);
 
 --
@@ -329,7 +334,6 @@
   PRIMARY KEY (pkid1, pkid2)
 );
 
-
 --
 -- Table: serialized
 --
@@ -338,7 +342,6 @@
   serialized text NOT NULL
 );
 
-
 --
 -- Table: tags
 --
@@ -362,7 +365,9 @@
 );
 
 CREATE INDEX track_idx_cd_track ON track (cd);
+
 CREATE UNIQUE INDEX track_cd_position_track ON track (cd, position);
+
 CREATE UNIQUE INDEX track_cd_title_track ON track (cd, title);
 
 --
@@ -389,6 +394,7 @@
 );
 
 CREATE INDEX twokeytreelike_idx_parent1_parent2_twokeytre ON twokeytreelike (parent1, parent2);
+
 CREATE UNIQUE INDEX tktlnameunique_twokeytreelike ON twokeytreelike (name);
 
 --
@@ -412,11 +418,9 @@
 );
 
 --
--- Table: encoded
+-- View: year2000cds
 --
-CREATE TABLE encoded (
-  id INTEGER PRIMARY KEY NOT NULL,
-  encoded varchar(100) NOT NULL
-);
+CREATE VIEW year2000cds AS
+    SELECT cdid, artist, title FROM cd WHERE year ='2000';
 
 COMMIT;




More information about the Bast-commits mailing list