From: Arthur Axel 'fREW' Schmidt Date: Fri, 4 Jun 2010 04:22:20 +0000 (-0500) Subject: lots of little tweaks X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fteaching;p=dbsrgits%2Fdbix-class-introduction-presentation.git lots of little tweaks --- diff --git a/slideshow.html b/slideshow.html index f94f148..4213975 100644 --- a/slideshow.html +++ b/slideshow.html @@ -174,16 +174,6 @@
-

books table

-
CREATE TABLE books(
-   id        int(8) primary key auto_increment,
-   title     varchar(255),
-   author_id int(8),foreign key (author)
-      references authors(id)
-) engine = InnoDB DEFAULT CHARSET=utf8;
-
- -

CRUD compared

@@ -815,7 +814,7 @@ __PACKAGE__->config( ); 1; -

Keep your Schema in a separate package to your Catalyst application

+

Keep your Schema in a separate package from your Catalyst application

@@ -823,8 +822,8 @@ __PACKAGE__->config(
sub action_name : Local {
   my ($self, $c) = @_;
 
-  my $model = $c->model('Schema::Foo');
-  my $author_model = $model->resultset('Authors');
+  my $schema = $c->model('Schema::Foo');
+  my $author_rs = $schema->resultset('Authors');
 
 }