X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FManual%2FUpgradingFromV4.pod;h=21dc9e3b9713ed8da5b10359d38d950acbf471bd;hb=7c304e590cd0eac21aed4c62266e43129d6ff9ce;hp=4db5e74e6a436e205c6e4a5967b0e9b4bad653a1;hpb=a0e0a56a9b622b79fdc4584eabea5d715d309c79;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/lib/DBIx/Class/Schema/Loader/Manual/UpgradingFromV4.pod b/lib/DBIx/Class/Schema/Loader/Manual/UpgradingFromV4.pod index 4db5e74..21dc9e3 100644 --- a/lib/DBIx/Class/Schema/Loader/Manual/UpgradingFromV4.pod +++ b/lib/DBIx/Class/Schema/Loader/Manual/UpgradingFromV4.pod @@ -28,6 +28,12 @@ It will also more correctly infer the relationship type, e.g. some relationships that were previously detected as a C will now be a C (when it detects a unique constraint on the foreign key column.) +Also C and C are turned off for by default for +C and C relationships, while C relationships +are created with C<< on_delete => 'CASCADE' >> and C<< on_update => 'CASCADE' >> +by default. This is overridable via +L. + =item * moniker_map @@ -38,34 +44,45 @@ becomes C instead. =item * +use_namespaces + +Now defaults to on. See L and +L. + +=item * + Support for more databases -We now support Microsoft SQL Server and Sybase, and there are also improvements -to the other backends. +We now support Microsoft SQL Server and Sybase, and there are also many +improvements to the other backends. =back =head1 Backward Compatibility In backward compatibility mode, the Loader will use the old relationship names -and types, and will not singularize monikers for tables. +and types, will not singularize monikers for tables, and C will +be off. -To control this behavior see L. +To control this behavior see L and +L. =head2 Static Schemas When reading a C from a static schema generated with an C<0.04> version of Loader, backward compatibility mode will default to on, unless -overridden with the C attribute. +overridden with the C and/or C attributes. =head2 Dynamic Schemas -Dynamic schemas will always by default use C<0.04006> mode. +Dynamic schemas will always by default use C<0.04006> mode and have +C off. -To upgrade a dynamic schema, set the naming attribute (which is proxied to the -loader) in your C: +To upgrade a dynamic schema, set the C and C attributes +(which is proxied to the loader) in your C: __PACKAGE__->naming('current'); + __PACKAGE__->use_namespaces(1); =head1 AUTHOR