Add indexes for custom_fields in device + device_port (#1045)

This commit is contained in:
Christian Ramseyer
2023-06-08 17:12:59 +02:00
committed by GitHub
parent cec6105105
commit 5d6697b035
2 changed files with 7 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ __PACKAGE__->load_namespaces(
);
our # try to hide from kwalitee
$VERSION = 78; # schema version used for upgrades, keep as integer
$VERSION = 79; # schema version used for upgrades, keep as integer
use Path::Class;
use File::ShareDir 'dist_dir';

View File

@@ -0,0 +1,6 @@
BEGIN;
CREATE INDEX idx_device_custom_fields ON device USING gin (custom_fields);
CREATE INDEX idx_device_port_custom_fields ON device_port USING gin (custom_fields);
COMMIT;