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 # temporary, needs to be thrown out
26 'DBIx::Class::IntrospectableM2M' => 0,
27 # core, but specific versions not available on older perls
28 'File::Temp' => '0.16',
29 'File::Path' => '2.07',
31 test => {TESTS => 't/*.t t/*/*.t t/*/*/*.t'},
34 'Class::Accessor::Grouped' => '0.10008',
35 'Class::C3::Componentised' => '1.0008',
36 'Class::Inspector' => '1.27',
37 'Class::Unload' => '0.07',
38 'curry' => '1.000000',
39 'Data::Dump' => '1.06',
40 'DBIx::Class' => '0.08127',
41 'Hash::Merge' => '0.12',
42 'Lingua::EN::Inflect::Number' => '1.1',
43 'Lingua::EN::Tagger' => '0.23',
44 'Lingua::EN::Inflect::Phrase' => '0.15',
45 'List::Util' => '1.33',
46 'MRO::Compat' => '0.09',
47 'namespace::clean' => '0.23',
48 'Scope::Guard' => '0.20',
49 'String::ToIdentifier::EN' => '0.05',
50 'String::CamelCase' => '0.02',
51 'Sub::Util' => '1.40',
53 # core, but specific versions not available on older perls
54 'Digest::MD5' => '2.36',
58 FILES => 'lib/DBIx/Class/Schema/Loader/Optional/Dependencies.pod'
60 EXE_FILES => [ qw(script/dbicdump) ],
62 "meta-spec" => { version => 2 },
67 url => 'git@github.com/dbsrgits/dbix-class-schema-loader.git',
68 web => 'https://github.com/dbsrgits/dbix-class-schema-loader',
70 x_IRC => 'irc://irc.perl.org/#dbix-class',
71 license => [ 'http://dev.perl.org/licenses/' ],
72 x_MailingList => 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class',
75 directory => [qw(maint xt)],
78 develop => { requires => $dev_requires || +{} },
84 my ($hash, $fromkey, $tokey) = @_;
86 %{ $hash->{$tokey} || {} },
87 %{ delete($hash->{$fromkey}) || {} },
90 delete $eumm_args{META_MERGE} if $eumm_version < 6.45_01;
91 delete $eumm_args{CONFIGURE_REQUIRES}
92 if $eumm_version < 6.51_03; # too late to use so just delete
93 _move_to(\%eumm_args, 'TEST_REQUIRES', 'BUILD_REQUIRES')
94 if $eumm_version < 6.63_03;
95 _move_to(\%eumm_args, 'BUILD_REQUIRES', 'PREREQ_PM')
96 if $eumm_version < 6.55_01;
97 $eumm_args{NO_MYMETA} = 1
98 if $eumm_version >= 6.57_02 and $eumm_version < 6.57_07;
99 WriteMakefile(%eumm_args);
102 ******************* DBIx::Class::Schema::Loader WARNING ***********************
103 The default attributes for belongs_to relationships for foreign keys with no
104 rules has been changed for most databases, and is soon changing for the rest,
105 as ON DELETE/UPDATE and DEFERRABLE clauses for foreign keys are now being
108 THIS MAY AFFECT YOUR DDL DIFFS WHEN DEPLOYING
110 YOUR GENERATED CODE WILL ALMOST CERTAINLY CHANGE
112 Read more about the changes in "relationship_attrs" in:
114 perldoc DBIx::Class::Schema::Loader::Base
116 https://metacpan.org/module/DBIx::Class::Schema::Loader::Base#relationship_attrs
118 See also the "Changes" file for the last few revisions.
119 *******************************************************************************
122 # vim:et sts=4 sw=4 tw=0: