Files
netdisco/lib/App/Netdisco/DB.pm
Oliver Gorwits 1c7c749f0e custom fields on devices and ports in the web from config (#945)
* custom device field web display and edit

* make display work; relies on T::T calling dict slot or method with same syntax

* add storing port custom fields

* use resultset method instead, use cf_ prefix

* update Pg min ver for jsonb

* allow override of position and default for port custom fields

* support hidden for custom fields

* update description of Objects API class

* allow left and mid position for custom fields

* add custom fields in csv

* change port control sidebar label

* fix default missing bug on backend jobs
2022-12-09 10:20:26 +00:00

30 lines
619 B
Perl

use utf8;
package App::Netdisco::DB;
use strict;
use warnings;
use base 'DBIx::Class::Schema';
__PACKAGE__->load_namespaces(
default_resultset_class => 'ResultSet',
);
our # try to hide from kwalitee
$VERSION = 77; # schema version used for upgrades, keep as integer
use Path::Class;
use File::ShareDir 'dist_dir';
our $schema_versions_dir = Path::Class::Dir->new( dist_dir('App-Netdisco') )
->subdir('schema_versions')->stringify;
__PACKAGE__->load_components(qw/
+App::Netdisco::DB::SchemaVersioned
+App::Netdisco::DB::ExplicitLocking
/);
__PACKAGE__->upgrade_directory($schema_versions_dir);
1;