minor changes
[dbsrgits/DBIx-Class-Schema-Loader.git] / lib / DBIx / Class / Schema / Loader / DBI / Pg.pm
index 1b922f1..529be87 100644 (file)
@@ -272,7 +272,9 @@ WHERE t.typname = ?
 EOF
 
     if (@$typevalues) {
+        # This is an enum type. Store its original name in extra for SQLT to pick up.
         $extra_info{extra}{list} = [ map { $_->[0] } @$typevalues ];
+        $extra_info{extra}{custom_type_name} = $info->{data_type};
     }
 
     return \%extra_info;