[Jifty-commit] r538 -

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Wed Feb 1 19:56:59 EST 2006


Author: jesse
Date: Wed Feb  1 19:56:58 2006
New Revision: 538

Modified:
   /   (props changed)
   Jifty-DBI/trunk/lib/Jifty/DBI/Schema.pm

Log:
 r23044 at truegrounds:  jesse | 2006-02-01 19:55:57 -0500
 * Changing defaults for "type" to only be varchar(255) if we're not a foriegn key. 
 


Modified: Jifty-DBI/trunk/lib/Jifty/DBI/Schema.pm
==============================================================================
--- Jifty-DBI/trunk/lib/Jifty/DBI/Schema.pm	(original)
+++ Jifty-DBI/trunk/lib/Jifty/DBI/Schema.pm	Wed Feb  1 19:56:58 2006
@@ -22,7 +22,7 @@
         readable => 1,
         writable => 1,
         virtual  => 0,
-        type     => 'varchar(255)',
+        type     => '',
         @_,
     );
     my @original = @args;
@@ -54,8 +54,11 @@
         } else {
             warn "Error: $refclass neither Record nor Collection";
         }
+    } else {
+        $column->type('varchar(255)') unless ($column->type);
     }
 
+
     $from->COLUMNS->{$name} = $column;
 }
 


More information about the Jifty-commit mailing list