5 use ExtUtils::MakeMaker;
6 my ($dev_requires) = (do './maint/Makefile.PL.include' or die $@)
9 my $eumm_version = eval $ExtUtils::MakeMaker::VERSION;
11 NAME => 'DBIx::Class::Schema::Loader',
12 VERSION_FROM => 'lib/DBIx/Class/Schema/Loader.pm',
14 MIN_PERL_VERSION => '5.008001',
15 CONFIGURE_REQUIRES => {
16 'ExtUtils::MakeMaker' => '0',
19 'DBD::SQLite' => '1.29',
20 'Test::Exception' => '0.31',
21 'Test::More' => '0.94',
22 'Test::Warn' => '0.21',
23 'Test::Deep' => '0.107',
24 'Test::Differences' => '0.60',
25 # core, but specific versions not available on older perls
26 'File::Temp' => '0.16',
27 'File::Path' => '2.07',
29 test => {TESTS => 't/*.t t/*/*.t t/*/*/*.t'},
32 'Class::Accessor::Grouped' => '0.10008',
33 'Class::C3::Componentised' => '1.0008',
34 'Class::Inspector' => '1.27',
35 'Class::Unload' => '0.07',
36 'curry' => '1.000000',
37 'Data::Dump' => '1.06',
38 'DBIx::Class' => '0.08127',
39 'Hash::Merge' => '0.12',
40 'Lingua::EN::Inflect::Number' => '1.1',
41 'Lingua::EN::Tagger' => '0.23',
42 'Lingua::EN::Inflect::Phrase' => '0.15',
43 'List::Util' => '1.33',
44 'MRO::Compat' => '0.09',
45 'namespace::clean' => '0.23',
46 'Scope::Guard' => '0.20',
47 'String::ToIdentifier::EN' => '0.05',
48 'Sub::Util' => '1.40',
50 # core, but specific versions not available on older perls
51 'Digest::MD5' => '2.36',
55 FILES => 'lib/DBIx/Class/Schema/Loader/Optional/Dependencies.pod'
57 EXE_FILES => [ qw(script/dbicdump) ],
59 "meta-spec" => { version => 2 },
64 url => 'git@github.com/dbsrgits/dbix-class-schema-loader.git',
65 web => 'https://github.com/dbsrgits/dbix-class-schema-loader',
67 x_IRC => 'irc://irc.perl.org/#dbix-class',
68 license => [ 'http://dev.perl.org/licenses/' ],
69 x_MailingList => 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class',
72 directory => [qw(maint xt)],
75 develop => { requires => $dev_requires || +{} },
81 my ($hash, $fromkey, $tokey) = @_;
83 %{ $hash->{$tokey} || {} },
84 %{ delete($hash->{$fromkey}) || {} },
87 delete $eumm_args{META_MERGE} if $eumm_version < 6.45_01;
88 delete $eumm_args{CONFIGURE_REQUIRES}
89 if $eumm_version < 6.51_03; # too late to use so just delete
90 _move_to(\%eumm_args, 'TEST_REQUIRES', 'BUILD_REQUIRES')
91 if $eumm_version < 6.63_03;
92 _move_to(\%eumm_args, 'BUILD_REQUIRES', 'PREREQ_PM')
93 if $eumm_version < 6.55_01;
94 $eumm_args{NO_MYMETA} = 1
95 if $eumm_version >= 6.57_02 and $eumm_version < 6.57_07;
96 WriteMakefile(%eumm_args);
99 ******************* DBIx::Class::Schema::Loader WARNING ***********************
100 The default attributes for belongs_to relationships for foreign keys with no
101 rules has been changed for most databases, and is soon changing for the rest,
102 as ON DELETE/UPDATE and DEFERRABLE clauses for foreign keys are now being
105 THIS MAY AFFECT YOUR DDL DIFFS WHEN DEPLOYING
107 YOUR GENERATED CODE WILL ALMOST CERTAINLY CHANGE
109 Read more about the changes in "relationship_attrs" in:
111 perldoc DBIx::Class::Schema::Loader::Base
113 https://metacpan.org/module/DBIx::Class::Schema::Loader::Base#relationship_attrs
115 See also the "Changes" file for the last few revisions.
116 *******************************************************************************
119 # vim:et sts=4 sw=4 tw=0: