« blib/lib/RackTables/Schema/Result/PortAllowedVLAN.pm
↑ Summary
blib/lib/RackTables/Schema/Result/PortInnerInterface.pm »
| 1 | package RackTables::Schema::Result::PortCompat; | ||
| 2 | |||
| 3 | # Created by DBIx::Class::Schema::Loader | ||
| 4 | # DO NOT MODIFY THE FIRST PART OF THIS FILE | ||
| 5 | |||
| 6 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 1 | ▶ | use MooseX::NonMoose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 1 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 1 | extends 'DBIx::Class::Core'; | |
| 13 | |||
| 14 | |||
| 15 | =head1 NAME | ||
| 16 | |||
| 17 | RackTables::Schema::Result::PortCompat | ||
| 18 | |||
| 19 | =cut | ||
| 20 | |||
| 21 | 1 | __PACKAGE__->table("PortCompat"); | |
| 22 | |||
| 23 | =head1 ACCESSORS | ||
| 24 | |||
| 25 | =head2 type1 | ||
| 26 | |||
| 27 | data_type: 'integer' | ||
| 28 | default_value: 0 | ||
| 29 | extra: {unsigned => 1} | ||
| 30 | is_nullable: 0 | ||
| 31 | |||
| 32 | =head2 type2 | ||
| 33 | |||
| 34 | data_type: 'integer' | ||
| 35 | default_value: 0 | ||
| 36 | extra: {unsigned => 1} | ||
| 37 | is_nullable: 0 | ||
| 38 | |||
| 39 | =cut | ||
| 40 | |||
| 41 | 1 | __PACKAGE__->add_columns( | |
| 42 | "type1", | ||
| 43 | { | ||
| 44 | data_type => "integer", | ||
| 45 | default_value => 0, | ||
| 46 | extra => { unsigned => 1 }, | ||
| 47 | is_nullable => 0, | ||
| 48 | }, | ||
| 49 | "type2", | ||
| 50 | { | ||
| 51 | data_type => "integer", | ||
| 52 | default_value => 0, | ||
| 53 | extra => { unsigned => 1 }, | ||
| 54 | is_nullable => 0, | ||
| 55 | }, | ||
| 56 | ); | ||
| 57 | 1 | __PACKAGE__->add_unique_constraint("type1_2", ["type1", "type2"]); | |
| 58 | |||
| 59 | |||
| 60 | # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-26 11:34:02 | ||
| 61 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:lCX8c5QD8yPXX6CwB2DrhQ | ||
| 62 | |||
| 63 | |||
| 64 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
| 65 | 1 | __PACKAGE__->meta->make_immutable; | |
| 66 | 1 | 1; | |