Skip to content

Commit

Permalink
Regenerated schema files.
Browse files Browse the repository at this point in the history
 - Use newer DBIC::Schema::Loader
 - Use Moose
  • Loading branch information
davorg committed Jul 28, 2015
1 parent a6ea95f commit 07e8fb5
Show file tree
Hide file tree
Showing 12 changed files with 121 additions and 53 deletions.
16 changes: 10 additions & 6 deletions lib/Magnum/Schema.pm
Expand Up @@ -4,16 +4,15 @@ package Magnum::Schema;
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE

use strict;
use warnings;

use base 'DBIx::Class::Schema';
use Moose;
use MooseX::MarkAsMethods autoclean => 1;
extends 'DBIx::Class::Schema';

__PACKAGE__->load_namespaces;


# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-02-04 11:16:24
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6axCrvoJv1rtVOw/wPhpNQ
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-07-28 21:49:54
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:foK58VqUDGvMqg44iil8Yw


# You can replace this text with custom code or comments, and it will be preserved on regeneration
Expand All @@ -38,3 +37,8 @@ sub get_schema {
}

1;


# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable(inline_constructor => 0);
1;
22 changes: 13 additions & 9 deletions lib/Magnum/Schema/Result/Contract.pm
Expand Up @@ -13,7 +13,10 @@ Magnum::Schema::Result::Contract
use strict;
use warnings;

use base 'DBIx::Class::Core';
use Moose;
use MooseX::NonMoose;
use MooseX::MarkAsMethods autoclean => 1;
extends 'DBIx::Class::Core';

=head1 COMPONENTS LOADED
Expand Down Expand Up @@ -114,7 +117,7 @@ __PACKAGE__->table("contract");
data_type: 'varchar'
is_nullable: 1
size: 40
size: 200
=head2 cust_ref_desc
Expand Down Expand Up @@ -207,7 +210,7 @@ __PACKAGE__->add_columns(
is_nullable => 0,
},
"cust_ref",
{ data_type => "varchar", is_nullable => 1, size => 40 },
{ data_type => "varchar", is_nullable => 1, size => 200 },
"cust_ref_desc",
{ data_type => "varchar", is_nullable => 1, size => 40 },
"cust_contact",
Expand Down Expand Up @@ -244,7 +247,7 @@ __PACKAGE__->belongs_to(
"customer",
"Magnum::Schema::Result::Customer",
{ id => "customer" },
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
{ is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
);

=head2 employee
Expand All @@ -259,7 +262,7 @@ __PACKAGE__->belongs_to(
"employee",
"Magnum::Schema::Result::Employee",
{ id => "employee" },
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
{ is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
);

=head2 invoices
Expand Down Expand Up @@ -289,7 +292,7 @@ __PACKAGE__->belongs_to(
"product",
"Magnum::Schema::Result::Product",
{ id => "product" },
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
{ is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
);

=head2 site
Expand All @@ -304,7 +307,7 @@ __PACKAGE__->belongs_to(
"site",
"Magnum::Schema::Result::Site",
{ id => "site" },
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
{ is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
);

=head2 weeks
Expand All @@ -323,9 +326,10 @@ __PACKAGE__->has_many(
);


# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-02-04 11:16:24
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:i1qJ4vsavYz2Fh8eXm/IcQ
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-07-28 21:49:54
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NdcPbPLZmeJRoJFsaqGWHA


# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;
14 changes: 11 additions & 3 deletions lib/Magnum/Schema/Result/Customer.pm
Expand Up @@ -13,7 +13,10 @@ Magnum::Schema::Result::Customer
use strict;
use warnings;

use base 'DBIx::Class::Core';
use Moose;
use MooseX::NonMoose;
use MooseX::MarkAsMethods autoclean => 1;
extends 'DBIx::Class::Core';

=head1 COMPONENTS LOADED
Expand Down Expand Up @@ -175,8 +178,8 @@ __PACKAGE__->has_many(
);


# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-02-04 11:16:24
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fnDyuR6V2tpPLuivvAjnUA
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-07-28 21:49:55
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/F4OBDAa8OtnXthJQBXDJA


# You can replace this text with custom code or comments, and it will be preserved on regeneration
Expand All @@ -195,3 +198,8 @@ sub name_addr {
}

1;


# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;
16 changes: 12 additions & 4 deletions lib/Magnum/Schema/Result/Day.pm
Expand Up @@ -13,7 +13,10 @@ Magnum::Schema::Result::Day
use strict;
use warnings;

use base 'DBIx::Class::Core';
use Moose;
use MooseX::NonMoose;
use MooseX::MarkAsMethods autoclean => 1;
extends 'DBIx::Class::Core';

=head1 COMPONENTS LOADED
Expand Down Expand Up @@ -139,12 +142,12 @@ __PACKAGE__->belongs_to(
"week",
"Magnum::Schema::Result::Week",
{ id => "week" },
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
{ is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
);


# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-02-04 11:16:24
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:lv/Sn/FFrdVztuj7ZeZarQ
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-07-28 21:49:55
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZK4fhYqluW7IDYVAxb4saw


# You can replace this text with custom code or comments, and it will be preserved on regeneration
Expand Down Expand Up @@ -228,3 +231,8 @@ sub is_in_month {
}

1;


# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;
14 changes: 11 additions & 3 deletions lib/Magnum/Schema/Result/Employee.pm
Expand Up @@ -13,7 +13,10 @@ Magnum::Schema::Result::Employee
use strict;
use warnings;

use base 'DBIx::Class::Core';
use Moose;
use MooseX::NonMoose;
use MooseX::MarkAsMethods autoclean => 1;
extends 'DBIx::Class::Core';

=head1 COMPONENTS LOADED
Expand Down Expand Up @@ -112,8 +115,8 @@ __PACKAGE__->has_many(
);


# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-02-04 11:16:24
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gITY7vxHAuz3xbPkkvVvog
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-07-28 21:49:55
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5ug0SWrfvVVaOgtPhqtzjA

sub name {
my $self = shift;
Expand All @@ -123,3 +126,8 @@ sub name {

# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;


# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;
20 changes: 14 additions & 6 deletions lib/Magnum/Schema/Result/Invoice.pm
Expand Up @@ -13,7 +13,10 @@ Magnum::Schema::Result::Invoice
use strict;
use warnings;

use base 'DBIx::Class::Core';
use Moose;
use MooseX::NonMoose;
use MooseX::MarkAsMethods autoclean => 1;
extends 'DBIx::Class::Core';

=head1 COMPONENTS LOADED
Expand Down Expand Up @@ -121,8 +124,8 @@ __PACKAGE__->belongs_to(
{
is_deferrable => 1,
join_type => "LEFT",
on_delete => "CASCADE",
on_update => "CASCADE",
on_delete => "RESTRICT",
on_update => "RESTRICT",
},
);

Expand All @@ -138,7 +141,7 @@ __PACKAGE__->belongs_to(
"customer",
"Magnum::Schema::Result::Customer",
{ id => "customer" },
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
{ is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
);

=head2 invoice_lines
Expand All @@ -157,8 +160,8 @@ __PACKAGE__->has_many(
);


# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-02-04 11:16:24
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:y5mE8rTDeSjpuSyWItgrMg
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-07-28 21:49:55
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:67pAV5Dbt5MjEJqWeB4b3A


# You can replace this text with custom code or comments, and it will be preserved on regeneration
Expand Down Expand Up @@ -262,3 +265,8 @@ sub filename {
}

1;


# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;
16 changes: 10 additions & 6 deletions lib/Magnum/Schema/Result/InvoiceLine.pm
Expand Up @@ -13,7 +13,10 @@ Magnum::Schema::Result::InvoiceLine
use strict;
use warnings;

use base 'DBIx::Class::Core';
use Moose;
use MooseX::NonMoose;
use MooseX::MarkAsMethods autoclean => 1;
extends 'DBIx::Class::Core';

=head1 COMPONENTS LOADED
Expand Down Expand Up @@ -157,7 +160,7 @@ __PACKAGE__->belongs_to(
"invoice",
"Magnum::Schema::Result::Invoice",
{ id => "invoice" },
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
{ is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
);

=head2 week
Expand All @@ -175,15 +178,16 @@ __PACKAGE__->belongs_to(
{
is_deferrable => 1,
join_type => "LEFT",
on_delete => "CASCADE",
on_update => "CASCADE",
on_delete => "RESTRICT",
on_update => "RESTRICT",
},
);


# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-02-04 11:21:57
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fjgEiBWK/FXMsrcF1vulIg
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-07-28 21:49:55
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ww5mPvaf+j2u6gZKmJcKvA


# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;
10 changes: 7 additions & 3 deletions lib/Magnum/Schema/Result/Product.pm
Expand Up @@ -13,7 +13,10 @@ Magnum::Schema::Result::Product
use strict;
use warnings;

use base 'DBIx::Class::Core';
use Moose;
use MooseX::NonMoose;
use MooseX::MarkAsMethods autoclean => 1;
extends 'DBIx::Class::Core';

=head1 COMPONENTS LOADED
Expand Down Expand Up @@ -87,9 +90,10 @@ __PACKAGE__->has_many(
);


# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-02-04 11:16:24
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:TQPOLvRtFjTj8tVnjD7j/w
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-07-28 21:49:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/6yeY2gMcMCqPSVkDb4tpA


# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;
10 changes: 7 additions & 3 deletions lib/Magnum/Schema/Result/Site.pm
Expand Up @@ -13,7 +13,10 @@ Magnum::Schema::Result::Site
use strict;
use warnings;

use base 'DBIx::Class::Core';
use Moose;
use MooseX::NonMoose;
use MooseX::MarkAsMethods autoclean => 1;
extends 'DBIx::Class::Core';

=head1 COMPONENTS LOADED
Expand Down Expand Up @@ -143,9 +146,10 @@ __PACKAGE__->has_many(
);


# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-02-04 11:16:24
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wOCeVsUPxBj1fn3i4Cn2XQ
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-07-28 21:49:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4ycr2FOW2rMk47n3fWob6A


# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;
10 changes: 7 additions & 3 deletions lib/Magnum/Schema/Result/Temptable.pm
Expand Up @@ -13,7 +13,10 @@ Magnum::Schema::Result::Temptable
use strict;
use warnings;

use base 'DBIx::Class::Core';
use Moose;
use MooseX::NonMoose;
use MooseX::MarkAsMethods autoclean => 1;
extends 'DBIx::Class::Core';

=head1 COMPONENTS LOADED
Expand Down Expand Up @@ -108,9 +111,10 @@ __PACKAGE__->add_columns(
);


# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-02-04 11:16:24
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aRC7FtONunHrVXi0mjBiig
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-07-28 21:49:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yn8+8IqW9g8W9dDVf7arbA


# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;

0 comments on commit 07e8fb5

Please sign in to comment.