Heray-Was-Here
Server : Apache
System : Linux vps103298.mylogin.co 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : calvet ( 273824)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /proc/self/root/proc/self/root/usr/share/doc/perl-DBIx-Class/t/lib/DBICTest/Schema/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/proc/self/root/usr/share/doc/perl-DBIx-Class/t/lib/DBICTest/Schema/ForceForeign.pm
package # hide from PAUSE
    DBICTest::Schema::ForceForeign;

use warnings;
use strict;

use base qw/DBICTest::BaseResult/;

__PACKAGE__->table('forceforeign');
__PACKAGE__->add_columns(
  'artist' => { data_type => 'integer' },
  'cd' => { data_type => 'integer' },
);
__PACKAGE__->set_primary_key(qw/artist/);

# Normally this would not appear as a FK constraint
# since it uses the PK
__PACKAGE__->might_have('artist_1', 'DBICTest::Schema::Artist', 'artistid',
  { is_foreign_key_constraint => 1 },
);

# Normally this would appear as a FK constraint
__PACKAGE__->might_have('cd_1', 'DBICTest::Schema::CD',
  { 'foreign.cdid' => 'self.cd' },
  { is_foreign_key_constraint => 0 },
);

# Normally this would appear as a FK constraint
__PACKAGE__->belongs_to('cd_3', 'DBICTest::Schema::CD',
  { 'foreign.cdid' => 'self.cd' },
  { is_foreign_key_constraint => 0 },
);

1;

Hry