diff --git a/lib/App/Netdisco/DB.pm b/lib/App/Netdisco/DB.pm index acbcd561..6956a2c4 100644 --- a/lib/App/Netdisco/DB.pm +++ b/lib/App/Netdisco/DB.pm @@ -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'; diff --git a/share/schema_versions/App-Netdisco-DB-78-79-PostgreSQL.sql b/share/schema_versions/App-Netdisco-DB-78-79-PostgreSQL.sql new file mode 100644 index 00000000..d6ee0b35 --- /dev/null +++ b/share/schema_versions/App-Netdisco-DB-78-79-PostgreSQL.sql @@ -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;