3.0_beta10.sql

来自「Network Administration Visualized 网络管理可」· SQL 代码 · 共 27 行

SQL
27
字号
/* * * This SQL script is designed to upgrade your NAV database from * version 3.0_beta9 to 3.0_beta10. * * The collection of memory information from devices has remained * unimplemented in NAV 3 until now, which prompted the addition of a * UNIQUE contraint to the mem table * * Connect to PostgreSQL as the postgres superuser and run this script * like this: * * psql -f 3.0_beta8.sql manage postgres * * Please, also run the updated snmpoid.sql script over again, like * this: * * psql -f snmpoid.sql manage postgres **/BEGIN;-- Make sure the table is empty before we proceedDELETE FROM mem;ALTER TABLE mem ADD CONSTRAINT mem_netboxid_key UNIQUE(netboxid, memtype, device);COMMIT;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?