5 DBIx::Class::Schema::Loader::Manual::UpgradingFromV4 - Important Information
6 Related to Upgrading from Version 0.04006
16 The new Loader detects much more information about columns and sets flags like
17 C<is_auto_increment> that it didn't set before.
23 The new RelBuilder will give you much nicer accessor names for relationships,
24 so you will no longer have conflicts between a foreign key column and the
25 relationship accessor itself.
27 It will also more correctly infer the relationship type, e.g. some relationships
28 that were previously detected as a C<has_many> will now be a C<might_have>
29 (when it detects a unique constraint on the foreign key column.)
35 Table names are now singularized when determining the C<Result> class names. So
36 the table C<user_roles> would have become C<UserRoles> in C<0.04006> but now
37 becomes C<UserRole> instead.
41 Support for more databases
43 We now support Microsoft SQL Server and Sybase, and there are also improvements
44 to the other backends.
48 =head1 Backward Compatibility
50 In backward compatibility mode, the Loader will use the old relationship names
51 and types, and will not singularize monikers for tables.
53 To control this behavior see L<DBIx::Class::Schema::Loader::Base/naming>.
57 When reading a C<Schema.pm> from a static schema generated with an C<0.04>
58 version of Loader, backward compatibility mode will default to on, unless
59 overridden with the C<naming> attribute.
61 =head2 Dynamic Schemas
63 Dynamic schemas will always by default use C<0.04006> mode.
65 To upgrade a dynamic schema, set the naming attribute (which is proxied to the
66 loader) in your C<Schema.pm>:
68 __PACKAGE__->naming('current');
72 See L<DBIx::Class::Schema::Loader/AUTHOR> and L<DBIx::Class::Schema::Loader/CONTRIBUTORS>.
76 This library is free software; you can redistribute it and/or modify it under
77 the same terms as Perl itself.