add device_port cols for aggregate links data
This commit is contained in:
@@ -10,7 +10,7 @@ __PACKAGE__->load_namespaces(
|
||||
default_resultset_class => 'ResultSet',
|
||||
);
|
||||
|
||||
our $VERSION = 33; # schema version used for upgrades, keep as integer
|
||||
our $VERSION = 34; # schema version used for upgrades, keep as integer
|
||||
|
||||
use Path::Class;
|
||||
use File::Basename;
|
||||
|
||||
@@ -53,6 +53,10 @@ __PACKAGE__->add_columns(
|
||||
{ data_type => "text", is_nullable => 1 },
|
||||
"remote_id",
|
||||
{ data_type => "text", is_nullable => 1 },
|
||||
"is_master",
|
||||
{ data_type => "bool", is_nullable => 0, default_value => \"false" },
|
||||
"slave_of",
|
||||
{ data_type => "text", is_nullable => 1 },
|
||||
"manual_topo",
|
||||
{ data_type => "bool", is_nullable => 0, default_value => \"false" },
|
||||
"is_uplink",
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
BEGIN;
|
||||
|
||||
ALTER TABLE device_port DROP COLUMN is_uplink_admin;
|
||||
ALTER TABLE device_port ADD COLUMN "slave_of" text;
|
||||
ALTER TABLE device_port ADD COLUMN "is_master" bool DEFAULT false NOT NULL;
|
||||
|
||||
COMMIT;
|
||||
Reference in New Issue
Block a user