Remove/fix bogus defaults values in example
Dagfinn Ilmari Mannsåker [Sun, 6 May 2012 16:19:13 +0000 (17:19 +0100)]
is_auto_increment already provides a default, and for the other columns
we either don't want a default value or it needs to be an integer.
Explicit is_auto_increment => 0 is also pointless and distracting.

lib/DBIx/Class/Manual/Intro.pod

index d27a24a..46c6686 100644 (file)
@@ -136,28 +136,22 @@ of information that it may be useful to have -- just pass C<add_columns> a hash:
                               size      => 16,
                               is_nullable => 0,
                               is_auto_increment => 1,
-                              default_value => '',
                             },
                           artist =>
                             { data_type => 'integer',
                               size      => 16,
                               is_nullable => 0,
-                              is_auto_increment => 0,
-                              default_value => '',
                             },
                           title  =>
                             { data_type => 'varchar',
                               size      => 256,
                               is_nullable => 0,
-                              is_auto_increment => 0,
-                              default_value => '',
                             },
                           rank =>
                             { data_type => 'integer',
                               size      => 16,
                               is_nullable => 0,
-                              is_auto_increment => 0,
-                              default_value => '',
+                              default_value => 0,
                             }
                          );