Viewing File server/base/sql/schema.upgrade.sql of 1.01.5b
|
1: -- Both will generate many many errors - run with --force, ignore errors 2: -- dbupg.sh -- PurplePixie Systems 3: -- 4: -- SHOW TABLES LIKE "fn%" 5: -- Table: fnalert 6: -- DESCRIBE fnalert 7: ALTER TABLE `fnalert` CHANGE `alertid` `alertid` bigint(20) unsigned NOT NULL auto_increment; 8: ALTER TABLE `fnalert` ADD `alertid` bigint(20) unsigned NOT NULL auto_increment; 9: ALTER TABLE `fnalert` ADD PRIMARY KEY( `alertid` ); 10: ALTER TABLE `fnalert` CHANGE `nodeid` `nodeid` varchar(64) NOT NULL; 11: ALTER TABLE `fnalert` ADD `nodeid` varchar(64) NOT NULL; 12: ALTER TABLE `fnalert` CHANGE `alertlevel` `alertlevel` int(11) NOT NULL DEFAULT '0'; 13: ALTER TABLE `fnalert` ADD `alertlevel` int(11) NOT NULL DEFAULT '0'; 14: ALTER TABLE `fnalert` CHANGE `openedx` `openedx` bigint(20) unsigned NOT NULL DEFAULT '0'; 15: ALTER TABLE `fnalert` ADD `openedx` bigint(20) unsigned NOT NULL DEFAULT '0'; 16: ALTER TABLE `fnalert` CHANGE `closedx` `closedx` bigint(20) unsigned NOT NULL DEFAULT '0'; 17: ALTER TABLE `fnalert` ADD `closedx` bigint(20) unsigned NOT NULL DEFAULT '0'; 18: -- 19: -- Table: fnalertaction 20: -- DESCRIBE fnalertaction 21: ALTER TABLE `fnalertaction` CHANGE `aaid` `aaid` bigint(20) unsigned NOT NULL auto_increment; 22: ALTER TABLE `fnalertaction` ADD `aaid` bigint(20) unsigned NOT NULL auto_increment; 23: ALTER TABLE `fnalertaction` ADD PRIMARY KEY( `aaid` ); 24: ALTER TABLE `fnalertaction` CHANGE `atype` `atype` varchar(32) NOT NULL; 25: ALTER TABLE `fnalertaction` ADD `atype` varchar(32) NOT NULL; 26: ALTER TABLE `fnalertaction` CHANGE `efrom` `efrom` varchar(250) NOT NULL; 27: ALTER TABLE `fnalertaction` ADD `efrom` varchar(250) NOT NULL; 28: ALTER TABLE `fnalertaction` CHANGE `etolist` `etolist` text NOT NULL; 29: ALTER TABLE `fnalertaction` ADD `etolist` text NOT NULL; 30: ALTER TABLE `fnalertaction` CHANGE `esubject` `esubject` int(11) NOT NULL DEFAULT '0'; 31: ALTER TABLE `fnalertaction` ADD `esubject` int(11) NOT NULL DEFAULT '0'; 32: ALTER TABLE `fnalertaction` CHANGE `etype` `etype` int(11) NOT NULL DEFAULT '0'; 33: ALTER TABLE `fnalertaction` ADD `etype` int(11) NOT NULL DEFAULT '0'; 34: ALTER TABLE `fnalertaction` CHANGE `awarnings` `awarnings` tinyint(1) NOT NULL DEFAULT '0'; 35: ALTER TABLE `fnalertaction` ADD `awarnings` tinyint(1) NOT NULL DEFAULT '0'; 36: ALTER TABLE `fnalertaction` CHANGE `adecrease` `adecrease` tinyint(1) NOT NULL DEFAULT '0'; 37: ALTER TABLE `fnalertaction` ADD `adecrease` tinyint(1) NOT NULL DEFAULT '0'; 38: ALTER TABLE `fnalertaction` CHANGE `mdata` `mdata` text NOT NULL; 39: ALTER TABLE `fnalertaction` ADD `mdata` text NOT NULL; 40: ALTER TABLE `fnalertaction` CHANGE `aname` `aname` varchar(120) NOT NULL; 41: ALTER TABLE `fnalertaction` ADD `aname` varchar(120) NOT NULL; 42: ALTER TABLE `fnalertaction` CHANGE `ctrdate` `ctrdate` varchar(8) NOT NULL; 43: ALTER TABLE `fnalertaction` ADD `ctrdate` varchar(8) NOT NULL; 44: ALTER TABLE `fnalertaction` CHANGE `ctrlimit` `ctrlimit` int(10) unsigned NOT NULL DEFAULT '0'; 45: ALTER TABLE `fnalertaction` ADD `ctrlimit` int(10) unsigned NOT NULL DEFAULT '0'; 46: ALTER TABLE `fnalertaction` CHANGE `ctrtoday` `ctrtoday` int(10) unsigned NOT NULL DEFAULT '0'; 47: ALTER TABLE `fnalertaction` ADD `ctrtoday` int(10) unsigned NOT NULL DEFAULT '0'; 48: ALTER TABLE `fnalertaction` CHANGE `scheduleid` `scheduleid` bigint(20) unsigned NOT NULL DEFAULT '0'; 49: ALTER TABLE `fnalertaction` ADD `scheduleid` bigint(20) unsigned NOT NULL DEFAULT '0'; 50: -- 51: -- Table: fnalertlog 52: -- DESCRIBE fnalertlog 53: ALTER TABLE `fnalertlog` CHANGE `alid` `alid` bigint(20) unsigned NOT NULL auto_increment; 54: ALTER TABLE `fnalertlog` ADD `alid` bigint(20) unsigned NOT NULL auto_increment; 55: ALTER TABLE `fnalertlog` ADD PRIMARY KEY( `alid` ); 56: ALTER TABLE `fnalertlog` CHANGE `alertid` `alertid` bigint(20) unsigned NOT NULL DEFAULT '0'; 57: ALTER TABLE `fnalertlog` ADD `alertid` bigint(20) unsigned NOT NULL DEFAULT '0'; 58: ALTER TABLE `fnalertlog` CHANGE `postedx` `postedx` bigint(20) unsigned NOT NULL DEFAULT '0'; 59: ALTER TABLE `fnalertlog` ADD `postedx` bigint(20) unsigned NOT NULL DEFAULT '0'; 60: ALTER TABLE `fnalertlog` CHANGE `logentry` `logentry` varchar(250) NOT NULL; 61: ALTER TABLE `fnalertlog` ADD `logentry` varchar(250) NOT NULL; 62: -- 63: -- Table: fnconfig 64: -- DESCRIBE fnconfig 65: ALTER TABLE `fnconfig` CHANGE `fnc_var` `fnc_var` varchar(64) NOT NULL; 66: ALTER TABLE `fnconfig` ADD `fnc_var` varchar(64) NOT NULL; 67: ALTER TABLE `fnconfig` ADD PRIMARY KEY( `fnc_var` ); 68: ALTER TABLE `fnconfig` CHANGE `fnc_val` `fnc_val` varchar(64) NOT NULL; 69: ALTER TABLE `fnconfig` ADD `fnc_val` varchar(64) NOT NULL; 70: -- 71: -- Table: fneval 72: -- DESCRIBE fneval 73: ALTER TABLE `fneval` CHANGE `evalid` `evalid` bigint(20) unsigned NOT NULL auto_increment; 74: ALTER TABLE `fneval` ADD `evalid` bigint(20) unsigned NOT NULL auto_increment; 75: ALTER TABLE `fneval` ADD PRIMARY KEY( `evalid` ); 76: ALTER TABLE `fneval` CHANGE `testid` `testid` varchar(128) NOT NULL; 77: ALTER TABLE `fneval` ADD `testid` varchar(128) NOT NULL; 78: ALTER TABLE `fneval` CHANGE `weight` `weight` int(11) NOT NULL DEFAULT '0'; 79: ALTER TABLE `fneval` ADD `weight` int(11) NOT NULL DEFAULT '0'; 80: ALTER TABLE `fneval` CHANGE `eoperator` `eoperator` varchar(32) NOT NULL; 81: ALTER TABLE `fneval` ADD `eoperator` varchar(32) NOT NULL; 82: ALTER TABLE `fneval` CHANGE `evalue` `evalue` varchar(128) NOT NULL; 83: ALTER TABLE `fneval` ADD `evalue` varchar(128) NOT NULL; 84: ALTER TABLE `fneval` CHANGE `eoutcome` `eoutcome` int(11) NOT NULL DEFAULT '0'; 85: ALTER TABLE `fneval` ADD `eoutcome` int(11) NOT NULL DEFAULT '0'; 86: -- 87: -- Table: fngroup 88: -- DESCRIBE fngroup 89: ALTER TABLE `fngroup` CHANGE `groupid` `groupid` bigint(20) unsigned NOT NULL auto_increment; 90: ALTER TABLE `fngroup` ADD `groupid` bigint(20) unsigned NOT NULL auto_increment; 91: ALTER TABLE `fngroup` ADD PRIMARY KEY( `groupid` ); 92: ALTER TABLE `fngroup` CHANGE `groupname` `groupname` varchar(128) NOT NULL; 93: ALTER TABLE `fngroup` ADD `groupname` varchar(128) NOT NULL; 94: ALTER TABLE `fngroup` CHANGE `groupdesc` `groupdesc` varchar(250) NOT NULL; 95: ALTER TABLE `fngroup` ADD `groupdesc` varchar(250) NOT NULL; 96: ALTER TABLE `fngroup` CHANGE `groupicon` `groupicon` varchar(64) NOT NULL; 97: ALTER TABLE `fngroup` ADD `groupicon` varchar(64) NOT NULL; 98: ALTER TABLE `fngroup` CHANGE `weight` `weight` int(10) unsigned NOT NULL DEFAULT '0'; 99: ALTER TABLE `fngroup` ADD `weight` int(10) unsigned NOT NULL DEFAULT '0'; 100: -- 101: -- Table: fngrouplink 102: -- DESCRIBE fngrouplink 103: ALTER TABLE `fngrouplink` CHANGE `glid` `glid` bigint(20) unsigned NOT NULL auto_increment; 104: ALTER TABLE `fngrouplink` ADD `glid` bigint(20) unsigned NOT NULL auto_increment; 105: ALTER TABLE `fngrouplink` ADD PRIMARY KEY( `glid` ); 106: ALTER TABLE `fngrouplink` CHANGE `groupid` `groupid` bigint(20) unsigned NOT NULL DEFAULT '0'; 107: ALTER TABLE `fngrouplink` ADD `groupid` bigint(20) unsigned NOT NULL DEFAULT '0'; 108: ALTER TABLE `fngrouplink` CHANGE `nodeid` `nodeid` varchar(64) NOT NULL; 109: ALTER TABLE `fngrouplink` ADD `nodeid` varchar(64) NOT NULL; 110: -- 111: -- Table: fnlocaltest 112: -- DESCRIBE fnlocaltest 113: ALTER TABLE `fnlocaltest` CHANGE `localtestid` `localtestid` bigint(20) unsigned NOT NULL auto_increment; 114: ALTER TABLE `fnlocaltest` ADD `localtestid` bigint(20) unsigned NOT NULL auto_increment; 115: ALTER TABLE `fnlocaltest` ADD PRIMARY KEY( `localtestid` ); 116: ALTER TABLE `fnlocaltest` CHANGE `nodeid` `nodeid` varchar(64) NOT NULL; 117: ALTER TABLE `fnlocaltest` ADD `nodeid` varchar(64) NOT NULL; 118: CREATE INDEX `nodeid` ON `fnlocaltest` ( `nodeid` ); 119: ALTER TABLE `fnlocaltest` CHANGE `alertlevel` `alertlevel` int(11) NOT NULL DEFAULT '-1'; 120: ALTER TABLE `fnlocaltest` ADD `alertlevel` int(11) NOT NULL DEFAULT '-1'; 121: ALTER TABLE `fnlocaltest` CHANGE `lastrunx` `lastrunx` bigint(20) unsigned NOT NULL DEFAULT '0'; 122: ALTER TABLE `fnlocaltest` ADD `lastrunx` bigint(20) unsigned NOT NULL DEFAULT '0'; 123: ALTER TABLE `fnlocaltest` CHANGE `testtype` `testtype` varchar(128) NOT NULL; 124: ALTER TABLE `fnlocaltest` ADD `testtype` varchar(128) NOT NULL; 125: ALTER TABLE `fnlocaltest` CHANGE `testparam` `testparam` varchar(250); 126: ALTER TABLE `fnlocaltest` ADD `testparam` varchar(250); 127: ALTER TABLE `fnlocaltest` CHANGE `testrecord` `testrecord` tinyint(1) NOT NULL DEFAULT '0'; 128: ALTER TABLE `fnlocaltest` ADD `testrecord` tinyint(1) NOT NULL DEFAULT '0'; 129: ALTER TABLE `fnlocaltest` CHANGE `simpleeval` `simpleeval` tinyint(1) NOT NULL DEFAULT '1'; 130: ALTER TABLE `fnlocaltest` ADD `simpleeval` tinyint(1) NOT NULL DEFAULT '1'; 131: ALTER TABLE `fnlocaltest` CHANGE `testname` `testname` varchar(64) NOT NULL; 132: ALTER TABLE `fnlocaltest` ADD `testname` varchar(64) NOT NULL; 133: ALTER TABLE `fnlocaltest` CHANGE `attempts` `attempts` int(11) NOT NULL DEFAULT '0'; 134: ALTER TABLE `fnlocaltest` ADD `attempts` int(11) NOT NULL DEFAULT '0'; 135: ALTER TABLE `fnlocaltest` CHANGE `timeout` `timeout` int(11) NOT NULL DEFAULT '0'; 136: ALTER TABLE `fnlocaltest` ADD `timeout` int(11) NOT NULL DEFAULT '0'; 137: ALTER TABLE `fnlocaltest` CHANGE `testenabled` `testenabled` tinyint(1) NOT NULL DEFAULT '1'; 138: ALTER TABLE `fnlocaltest` ADD `testenabled` tinyint(1) NOT NULL DEFAULT '1'; 139: ALTER TABLE `fnlocaltest` CHANGE `testparam1` `testparam1` varchar(250) NOT NULL; 140: ALTER TABLE `fnlocaltest` ADD `testparam1` varchar(250) NOT NULL; 141: ALTER TABLE `fnlocaltest` CHANGE `testparam2` `testparam2` varchar(250) NOT NULL; 142: ALTER TABLE `fnlocaltest` ADD `testparam2` varchar(250) NOT NULL; 143: ALTER TABLE `fnlocaltest` CHANGE `testparam3` `testparam3` varchar(250) NOT NULL; 144: ALTER TABLE `fnlocaltest` ADD `testparam3` varchar(250) NOT NULL; 145: ALTER TABLE `fnlocaltest` CHANGE `testparam4` `testparam4` varchar(250) NOT NULL; 146: ALTER TABLE `fnlocaltest` ADD `testparam4` varchar(250) NOT NULL; 147: ALTER TABLE `fnlocaltest` CHANGE `testparam5` `testparam5` varchar(250) NOT NULL; 148: ALTER TABLE `fnlocaltest` ADD `testparam5` varchar(250) NOT NULL; 149: ALTER TABLE `fnlocaltest` CHANGE `testparam6` `testparam6` varchar(250) NOT NULL; 150: ALTER TABLE `fnlocaltest` ADD `testparam6` varchar(250) NOT NULL; 151: ALTER TABLE `fnlocaltest` CHANGE `testparam7` `testparam7` varchar(250) NOT NULL; 152: ALTER TABLE `fnlocaltest` ADD `testparam7` varchar(250) NOT NULL; 153: ALTER TABLE `fnlocaltest` CHANGE `testparam8` `testparam8` varchar(250) NOT NULL; 154: ALTER TABLE `fnlocaltest` ADD `testparam8` varchar(250) NOT NULL; 155: ALTER TABLE `fnlocaltest` CHANGE `testparam9` `testparam9` varchar(250) NOT NULL; 156: ALTER TABLE `fnlocaltest` ADD `testparam9` varchar(250) NOT NULL; 157: ALTER TABLE `fnlocaltest` CHANGE `lastvalue` `lastvalue` float NOT NULL DEFAULT '0'; 158: ALTER TABLE `fnlocaltest` ADD `lastvalue` float NOT NULL DEFAULT '0'; 159: ALTER TABLE `fnlocaltest` CHANGE `testinterval` `testinterval` int(10) unsigned NOT NULL DEFAULT '0'; 160: ALTER TABLE `fnlocaltest` ADD `testinterval` int(10) unsigned NOT NULL DEFAULT '0'; 161: ALTER TABLE `fnlocaltest` CHANGE `nextrunx` `nextrunx` bigint(20) unsigned NOT NULL DEFAULT '0'; 162: ALTER TABLE `fnlocaltest` ADD `nextrunx` bigint(20) unsigned NOT NULL DEFAULT '0'; 163: -- 164: -- Table: fnlog 165: -- DESCRIBE fnlog 166: ALTER TABLE `fnlog` CHANGE `logid` `logid` bigint(20) unsigned NOT NULL auto_increment; 167: ALTER TABLE `fnlog` ADD `logid` bigint(20) unsigned NOT NULL auto_increment; 168: ALTER TABLE `fnlog` ADD PRIMARY KEY( `logid` ); 169: ALTER TABLE `fnlog` CHANGE `postedx` `postedx` bigint(20) unsigned NOT NULL DEFAULT '0'; 170: ALTER TABLE `fnlog` ADD `postedx` bigint(20) unsigned NOT NULL DEFAULT '0'; 171: ALTER TABLE `fnlog` CHANGE `modid` `modid` varchar(32) NOT NULL; 172: ALTER TABLE `fnlog` ADD `modid` varchar(32) NOT NULL; 173: ALTER TABLE `fnlog` CHANGE `catid` `catid` varchar(32) NOT NULL; 174: ALTER TABLE `fnlog` ADD `catid` varchar(32) NOT NULL; 175: ALTER TABLE `fnlog` CHANGE `username` `username` varchar(64) NOT NULL; 176: ALTER TABLE `fnlog` ADD `username` varchar(64) NOT NULL; 177: ALTER TABLE `fnlog` CHANGE `loglevel` `loglevel` int(11) NOT NULL DEFAULT '1'; 178: ALTER TABLE `fnlog` ADD `loglevel` int(11) NOT NULL DEFAULT '1'; 179: ALTER TABLE `fnlog` CHANGE `logevent` `logevent` varchar(250) NOT NULL; 180: ALTER TABLE `fnlog` ADD `logevent` varchar(250) NOT NULL; 181: -- 182: -- Table: fnnalink 183: -- DESCRIBE fnnalink 184: ALTER TABLE `fnnalink` CHANGE `nalid` `nalid` bigint(20) unsigned NOT NULL auto_increment; 185: ALTER TABLE `fnnalink` ADD `nalid` bigint(20) unsigned NOT NULL auto_increment; 186: ALTER TABLE `fnnalink` ADD PRIMARY KEY( `nalid` ); 187: ALTER TABLE `fnnalink` CHANGE `nodeid` `nodeid` varchar(64) NOT NULL; 188: ALTER TABLE `fnnalink` ADD `nodeid` varchar(64) NOT NULL; 189: ALTER TABLE `fnnalink` CHANGE `aaid` `aaid` bigint(20) unsigned NOT NULL DEFAULT '0'; 190: ALTER TABLE `fnnalink` ADD `aaid` bigint(20) unsigned NOT NULL DEFAULT '0'; 191: -- 192: -- Table: fnnode 193: -- DESCRIBE fnnode 194: ALTER TABLE `fnnode` CHANGE `nodeid` `nodeid` varchar(64) NOT NULL; 195: ALTER TABLE `fnnode` ADD `nodeid` varchar(64) NOT NULL; 196: ALTER TABLE `fnnode` ADD PRIMARY KEY( `nodeid` ); 197: ALTER TABLE `fnnode` CHANGE `nodename` `nodename` varchar(128) NOT NULL; 198: ALTER TABLE `fnnode` ADD `nodename` varchar(128) NOT NULL; 199: ALTER TABLE `fnnode` CHANGE `nodedesc` `nodedesc` varchar(254) NOT NULL; 200: ALTER TABLE `fnnode` ADD `nodedesc` varchar(254) NOT NULL; 201: ALTER TABLE `fnnode` CHANGE `hostname` `hostname` varchar(254) NOT NULL; 202: ALTER TABLE `fnnode` ADD `hostname` varchar(254) NOT NULL; 203: ALTER TABLE `fnnode` CHANGE `nodeenabled` `nodeenabled` tinyint(1) NOT NULL DEFAULT '0'; 204: ALTER TABLE `fnnode` ADD `nodeenabled` tinyint(1) NOT NULL DEFAULT '0'; 205: ALTER TABLE `fnnode` CHANGE `pingtest` `pingtest` tinyint(1) NOT NULL DEFAULT '0'; 206: ALTER TABLE `fnnode` ADD `pingtest` tinyint(1) NOT NULL DEFAULT '0'; 207: ALTER TABLE `fnnode` CHANGE `pingfatal` `pingfatal` tinyint(1) NOT NULL DEFAULT '0'; 208: ALTER TABLE `fnnode` ADD `pingfatal` tinyint(1) NOT NULL DEFAULT '0'; 209: ALTER TABLE `fnnode` CHANGE `alertlevel` `alertlevel` int(11) NOT NULL DEFAULT '-1'; 210: ALTER TABLE `fnnode` ADD `alertlevel` int(11) NOT NULL DEFAULT '-1'; 211: ALTER TABLE `fnnode` CHANGE `nodeicon` `nodeicon` varchar(64) NOT NULL; 212: ALTER TABLE `fnnode` ADD `nodeicon` varchar(64) NOT NULL; 213: ALTER TABLE `fnnode` CHANGE `weight` `weight` int(10) unsigned NOT NULL DEFAULT '0'; 214: ALTER TABLE `fnnode` ADD `weight` int(10) unsigned NOT NULL DEFAULT '0'; 215: ALTER TABLE `fnnode` CHANGE `nodealert` `nodealert` tinyint(1) NOT NULL DEFAULT '1'; 216: ALTER TABLE `fnnode` ADD `nodealert` tinyint(1) NOT NULL DEFAULT '1'; 217: ALTER TABLE `fnnode` CHANGE `scheduleid` `scheduleid` bigint(20) NOT NULL DEFAULT '0'; 218: ALTER TABLE `fnnode` ADD `scheduleid` bigint(20) NOT NULL DEFAULT '0'; 219: ALTER TABLE `fnnode` CHANGE `lastrunx` `lastrunx` bigint(20) unsigned NOT NULL DEFAULT '0'; 220: ALTER TABLE `fnnode` ADD `lastrunx` bigint(20) unsigned NOT NULL DEFAULT '0'; 221: ALTER TABLE `fnnode` CHANGE `testinterval` `testinterval` int(10) unsigned NOT NULL DEFAULT '5'; 222: ALTER TABLE `fnnode` ADD `testinterval` int(10) unsigned NOT NULL DEFAULT '5'; 223: ALTER TABLE `fnnode` CHANGE `nextrunx` `nextrunx` bigint(20) unsigned NOT NULL DEFAULT '0'; 224: ALTER TABLE `fnnode` ADD `nextrunx` bigint(20) unsigned NOT NULL DEFAULT '0'; 225: ALTER TABLE `fnnode` CHANGE `nsenabled` `nsenabled` tinyint(1) NOT NULL DEFAULT '0'; 226: ALTER TABLE `fnnode` ADD `nsenabled` tinyint(1) NOT NULL DEFAULT '0'; 227: ALTER TABLE `fnnode` CHANGE `nsurl` `nsurl` varchar(254) NOT NULL; 228: ALTER TABLE `fnnode` ADD `nsurl` varchar(254) NOT NULL; 229: ALTER TABLE `fnnode` CHANGE `nskey` `nskey` varchar(128) NOT NULL; 230: ALTER TABLE `fnnode` ADD `nskey` varchar(128) NOT NULL; 231: ALTER TABLE `fnnode` CHANGE `nspullenabled` `nspullenabled` tinyint(1) NOT NULL DEFAULT '0'; 232: ALTER TABLE `fnnode` ADD `nspullenabled` tinyint(1) NOT NULL DEFAULT '0'; 233: ALTER TABLE `fnnode` CHANGE `nspushenabled` `nspushenabled` tinyint(1) NOT NULL DEFAULT '0'; 234: ALTER TABLE `fnnode` ADD `nspushenabled` tinyint(1) NOT NULL DEFAULT '0'; 235: ALTER TABLE `fnnode` CHANGE `nspuship` `nspuship` varchar(128) NOT NULL; 236: ALTER TABLE `fnnode` ADD `nspuship` varchar(128) NOT NULL; 237: ALTER TABLE `fnnode` CHANGE `nsinterval` `nsinterval` int(10) unsigned NOT NULL DEFAULT '15'; 238: ALTER TABLE `fnnode` ADD `nsinterval` int(10) unsigned NOT NULL DEFAULT '15'; 239: ALTER TABLE `fnnode` CHANGE `nslastx` `nslastx` bigint(20) unsigned NOT NULL DEFAULT '0'; 240: ALTER TABLE `fnnode` ADD `nslastx` bigint(20) unsigned NOT NULL DEFAULT '0'; 241: ALTER TABLE `fnnode` CHANGE `nsnextx` `nsnextx` bigint(20) unsigned NOT NULL DEFAULT '0'; 242: ALTER TABLE `fnnode` ADD `nsnextx` bigint(20) unsigned NOT NULL DEFAULT '0'; 243: ALTER TABLE `fnnode` CHANGE `nspullalert` `nspullalert` tinyint(1) NOT NULL DEFAULT '0'; 244: ALTER TABLE `fnnode` ADD `nspullalert` tinyint(1) NOT NULL DEFAULT '0'; 245: ALTER TABLE `fnnode` CHANGE `nsfreshpush` `nsfreshpush` tinyint(1) NOT NULL DEFAULT '0'; 246: ALTER TABLE `fnnode` ADD `nsfreshpush` tinyint(1) NOT NULL DEFAULT '0'; 247: -- 248: -- Table: fnnstest 249: -- DESCRIBE fnnstest 250: ALTER TABLE `fnnstest` CHANGE `nstestid` `nstestid` bigint(20) unsigned NOT NULL auto_increment; 251: ALTER TABLE `fnnstest` ADD `nstestid` bigint(20) unsigned NOT NULL auto_increment; 252: ALTER TABLE `fnnstest` ADD PRIMARY KEY( `nstestid` ); 253: ALTER TABLE `fnnstest` CHANGE `nodeid` `nodeid` varchar(64) NOT NULL; 254: ALTER TABLE `fnnstest` ADD `nodeid` varchar(64) NOT NULL; 255: CREATE INDEX `nodeid` ON `fnnstest` ( `nodeid` ); 256: ALTER TABLE `fnnstest` CHANGE `alertlevel` `alertlevel` int(11) NOT NULL DEFAULT '-1'; 257: ALTER TABLE `fnnstest` ADD `alertlevel` int(11) NOT NULL DEFAULT '-1'; 258: ALTER TABLE `fnnstest` CHANGE `lastrunx` `lastrunx` bigint(20) unsigned NOT NULL DEFAULT '0'; 259: ALTER TABLE `fnnstest` ADD `lastrunx` bigint(20) unsigned NOT NULL DEFAULT '0'; 260: ALTER TABLE `fnnstest` CHANGE `testtype` `testtype` varchar(128) NOT NULL; 261: ALTER TABLE `fnnstest` ADD `testtype` varchar(128) NOT NULL; 262: ALTER TABLE `fnnstest` CHANGE `testdesc` `testdesc` varchar(250); 263: ALTER TABLE `fnnstest` ADD `testdesc` varchar(250); 264: ALTER TABLE `fnnstest` CHANGE `testrecord` `testrecord` tinyint(1) NOT NULL DEFAULT '0'; 265: ALTER TABLE `fnnstest` ADD `testrecord` tinyint(1) NOT NULL DEFAULT '0'; 266: ALTER TABLE `fnnstest` CHANGE `simpleeval` `simpleeval` tinyint(1) NOT NULL DEFAULT '1'; 267: ALTER TABLE `fnnstest` ADD `simpleeval` tinyint(1) NOT NULL DEFAULT '1'; 268: ALTER TABLE `fnnstest` CHANGE `testname` `testname` varchar(64) NOT NULL; 269: ALTER TABLE `fnnstest` ADD `testname` varchar(64) NOT NULL; 270: ALTER TABLE `fnnstest` CHANGE `testenabled` `testenabled` tinyint(1) NOT NULL DEFAULT '0'; 271: ALTER TABLE `fnnstest` ADD `testenabled` tinyint(1) NOT NULL DEFAULT '0'; 272: ALTER TABLE `fnnstest` CHANGE `lastvalue` `lastvalue` varchar(128) NOT NULL; 273: ALTER TABLE `fnnstest` ADD `lastvalue` varchar(128) NOT NULL; 274: ALTER TABLE `fnnstest` CHANGE `testalerts` `testalerts` tinyint(1) NOT NULL DEFAULT '1'; 275: ALTER TABLE `fnnstest` ADD `testalerts` tinyint(1) NOT NULL DEFAULT '1'; 276: -- 277: -- Table: fnrecord 278: -- DESCRIBE fnrecord 279: ALTER TABLE `fnrecord` CHANGE `recordid` `recordid` bigint(20) unsigned NOT NULL auto_increment; 280: ALTER TABLE `fnrecord` ADD `recordid` bigint(20) unsigned NOT NULL auto_increment; 281: ALTER TABLE `fnrecord` ADD PRIMARY KEY( `recordid` ); 282: ALTER TABLE `fnrecord` CHANGE `testid` `testid` varchar(128) NOT NULL; 283: ALTER TABLE `fnrecord` ADD `testid` varchar(128) NOT NULL; 284: CREATE INDEX `testid` ON `fnrecord` ( `testid` ); 285: ALTER TABLE `fnrecord` CHANGE `alertlevel` `alertlevel` int(11) NOT NULL DEFAULT '0'; 286: ALTER TABLE `fnrecord` ADD `alertlevel` int(11) NOT NULL DEFAULT '0'; 287: ALTER TABLE `fnrecord` CHANGE `testvalue` `testvalue` float NOT NULL DEFAULT '0'; 288: ALTER TABLE `fnrecord` ADD `testvalue` float NOT NULL DEFAULT '0'; 289: ALTER TABLE `fnrecord` CHANGE `recordx` `recordx` bigint(20) unsigned NOT NULL DEFAULT '0'; 290: ALTER TABLE `fnrecord` ADD `recordx` bigint(20) unsigned NOT NULL DEFAULT '0'; 291: CREATE INDEX `recordx` ON `fnrecord` ( `recordx` ); 292: ALTER TABLE `fnrecord` CHANGE `nodeid` `nodeid` varchar(64) NOT NULL; 293: ALTER TABLE `fnrecord` ADD `nodeid` varchar(64) NOT NULL; 294: -- 295: -- Table: fnreport 296: -- DESCRIBE fnreport 297: ALTER TABLE `fnreport` CHANGE `reportid` `reportid` bigint(20) unsigned NOT NULL auto_increment; 298: ALTER TABLE `fnreport` ADD `reportid` bigint(20) unsigned NOT NULL auto_increment; 299: ALTER TABLE `fnreport` ADD PRIMARY KEY( `reportid` ); 300: ALTER TABLE `fnreport` CHANGE `reportname` `reportname` varchar(128) NOT NULL; 301: ALTER TABLE `fnreport` ADD `reportname` varchar(128) NOT NULL; 302: ALTER TABLE `fnreport` CHANGE `reporttests` `reporttests` text NOT NULL; 303: ALTER TABLE `fnreport` ADD `reporttests` text NOT NULL; 304: -- 305: -- Table: fnscheditem 306: -- DESCRIBE fnscheditem 307: ALTER TABLE `fnscheditem` CHANGE `scheditemid` `scheditemid` bigint(20) NOT NULL auto_increment; 308: ALTER TABLE `fnscheditem` ADD `scheditemid` bigint(20) NOT NULL auto_increment; 309: ALTER TABLE `fnscheditem` ADD PRIMARY KEY( `scheditemid` ); 310: ALTER TABLE `fnscheditem` CHANGE `scheduleid` `scheduleid` bigint(20) NOT NULL DEFAULT '0'; 311: ALTER TABLE `fnscheditem` ADD `scheduleid` bigint(20) NOT NULL DEFAULT '0'; 312: ALTER TABLE `fnscheditem` CHANGE `dayofweek` `dayofweek` varchar(8) NOT NULL; 313: ALTER TABLE `fnscheditem` ADD `dayofweek` varchar(8) NOT NULL; 314: ALTER TABLE `fnscheditem` CHANGE `dayofmonth` `dayofmonth` int(11) NOT NULL DEFAULT '0'; 315: ALTER TABLE `fnscheditem` ADD `dayofmonth` int(11) NOT NULL DEFAULT '0'; 316: ALTER TABLE `fnscheditem` CHANGE `monthofyear` `monthofyear` int(11) NOT NULL DEFAULT '0'; 317: ALTER TABLE `fnscheditem` ADD `monthofyear` int(11) NOT NULL DEFAULT '0'; 318: ALTER TABLE `fnscheditem` CHANGE `year` `year` int(11) NOT NULL DEFAULT '0'; 319: ALTER TABLE `fnscheditem` ADD `year` int(11) NOT NULL DEFAULT '0'; 320: ALTER TABLE `fnscheditem` CHANGE `starthour` `starthour` int(11) NOT NULL DEFAULT '0'; 321: ALTER TABLE `fnscheditem` ADD `starthour` int(11) NOT NULL DEFAULT '0'; 322: ALTER TABLE `fnscheditem` CHANGE `startmin` `startmin` int(11) NOT NULL DEFAULT '0'; 323: ALTER TABLE `fnscheditem` ADD `startmin` int(11) NOT NULL DEFAULT '0'; 324: ALTER TABLE `fnscheditem` CHANGE `finishhour` `finishhour` int(11) NOT NULL DEFAULT '23'; 325: ALTER TABLE `fnscheditem` ADD `finishhour` int(11) NOT NULL DEFAULT '23'; 326: ALTER TABLE `fnscheditem` CHANGE `finishmin` `finishmin` int(11) NOT NULL DEFAULT '59'; 327: ALTER TABLE `fnscheditem` ADD `finishmin` int(11) NOT NULL DEFAULT '59'; 328: -- 329: -- Table: fnschedule 330: -- DESCRIBE fnschedule 331: ALTER TABLE `fnschedule` CHANGE `scheduleid` `scheduleid` bigint(20) unsigned NOT NULL auto_increment; 332: ALTER TABLE `fnschedule` ADD `scheduleid` bigint(20) unsigned NOT NULL auto_increment; 333: ALTER TABLE `fnschedule` ADD PRIMARY KEY( `scheduleid` ); 334: ALTER TABLE `fnschedule` CHANGE `schedulename` `schedulename` varchar(128) NOT NULL; 335: ALTER TABLE `fnschedule` ADD `schedulename` varchar(128) NOT NULL; 336: ALTER TABLE `fnschedule` CHANGE `defaultaction` `defaultaction` tinyint(1) NOT NULL DEFAULT '1'; 337: ALTER TABLE `fnschedule` ADD `defaultaction` tinyint(1) NOT NULL DEFAULT '1'; 338: -- 339: -- Table: fnsession 340: -- DESCRIBE fnsession 341: ALTER TABLE `fnsession` CHANGE `sessionid` `sessionid` bigint(20) unsigned NOT NULL auto_increment; 342: ALTER TABLE `fnsession` ADD `sessionid` bigint(20) unsigned NOT NULL auto_increment; 343: ALTER TABLE `fnsession` ADD PRIMARY KEY( `sessionid` ); 344: ALTER TABLE `fnsession` CHANGE `sessionkey` `sessionkey` varchar(128) NOT NULL; 345: ALTER TABLE `fnsession` ADD `sessionkey` varchar(128) NOT NULL; 346: ALTER TABLE `fnsession` CHANGE `ipaddress` `ipaddress` varchar(128) NOT NULL; 347: ALTER TABLE `fnsession` ADD `ipaddress` varchar(128) NOT NULL; 348: ALTER TABLE `fnsession` CHANGE `username` `username` varchar(64) NOT NULL; 349: ALTER TABLE `fnsession` ADD `username` varchar(64) NOT NULL; 350: ALTER TABLE `fnsession` CHANGE `startx` `startx` bigint(20) unsigned NOT NULL DEFAULT '0'; 351: ALTER TABLE `fnsession` ADD `startx` bigint(20) unsigned NOT NULL DEFAULT '0'; 352: ALTER TABLE `fnsession` CHANGE `updatex` `updatex` bigint(20) unsigned NOT NULL DEFAULT '0'; 353: ALTER TABLE `fnsession` ADD `updatex` bigint(20) unsigned NOT NULL DEFAULT '0'; 354: ALTER TABLE `fnsession` CHANGE `userlevel` `userlevel` int(11) NOT NULL DEFAULT '0'; 355: ALTER TABLE `fnsession` ADD `userlevel` int(11) NOT NULL DEFAULT '0'; 356: -- 357: -- Table: fntestrun 358: -- DESCRIBE fntestrun 359: ALTER TABLE `fntestrun` CHANGE `trid` `trid` bigint(20) unsigned NOT NULL auto_increment; 360: ALTER TABLE `fntestrun` ADD `trid` bigint(20) unsigned NOT NULL auto_increment; 361: ALTER TABLE `fntestrun` ADD PRIMARY KEY( `trid` ); 362: ALTER TABLE `fntestrun` CHANGE `startx` `startx` bigint(20) unsigned NOT NULL DEFAULT '0'; 363: ALTER TABLE `fntestrun` ADD `startx` bigint(20) unsigned NOT NULL DEFAULT '0'; 364: ALTER TABLE `fntestrun` CHANGE `finishx` `finishx` bigint(20) unsigned NOT NULL DEFAULT '0'; 365: ALTER TABLE `fntestrun` ADD `finishx` bigint(20) unsigned NOT NULL DEFAULT '0'; 366: ALTER TABLE `fntestrun` CHANGE `routput` `routput` text NOT NULL; 367: ALTER TABLE `fntestrun` ADD `routput` text NOT NULL; 368: ALTER TABLE `fntestrun` CHANGE `fnode` `fnode` varchar(64) NOT NULL; 369: ALTER TABLE `fntestrun` ADD `fnode` varchar(64) NOT NULL; 370: CREATE INDEX `fnode` ON `fntestrun` ( `fnode` ); 371: -- 372: -- Table: fnuser 373: -- DESCRIBE fnuser 374: ALTER TABLE `fnuser` CHANGE `username` `username` varchar(64) NOT NULL; 375: ALTER TABLE `fnuser` ADD `username` varchar(64) NOT NULL; 376: ALTER TABLE `fnuser` ADD PRIMARY KEY( `username` ); 377: ALTER TABLE `fnuser` CHANGE `password` `password` varchar(64) NOT NULL; 378: ALTER TABLE `fnuser` ADD `password` varchar(64) NOT NULL; 379: ALTER TABLE `fnuser` CHANGE `realname` `realname` varchar(128) NOT NULL; 380: ALTER TABLE `fnuser` ADD `realname` varchar(128) NOT NULL; 381: ALTER TABLE `fnuser` CHANGE `userlevel` `userlevel` int(11) NOT NULL DEFAULT '1'; 382: ALTER TABLE `fnuser` ADD `userlevel` int(11) NOT NULL DEFAULT '1'; 383: -- 384: -- Table: fnview 385: -- DESCRIBE fnview 386: ALTER TABLE `fnview` CHANGE `viewid` `viewid` bigint(20) unsigned NOT NULL auto_increment; 387: ALTER TABLE `fnview` ADD `viewid` bigint(20) unsigned NOT NULL auto_increment; 388: ALTER TABLE `fnview` ADD PRIMARY KEY( `viewid` ); 389: ALTER TABLE `fnview` CHANGE `vtitle` `vtitle` varchar(128) NOT NULL; 390: ALTER TABLE `fnview` ADD `vtitle` varchar(128) NOT NULL; 391: ALTER TABLE `fnview` CHANGE `vstyle` `vstyle` varchar(32) NOT NULL; 392: ALTER TABLE `fnview` ADD `vstyle` varchar(32) NOT NULL; 393: ALTER TABLE `fnview` CHANGE `vpublic` `vpublic` tinyint(1) NOT NULL DEFAULT '0'; 394: ALTER TABLE `fnview` ADD `vpublic` tinyint(1) NOT NULL DEFAULT '0'; 395: ALTER TABLE `fnview` CHANGE `vclick` `vclick` varchar(32) NOT NULL; 396: ALTER TABLE `fnview` ADD `vclick` varchar(32) NOT NULL; 397: ALTER TABLE `fnview` CHANGE `vrefresh` `vrefresh` int(11) NOT NULL DEFAULT '0'; 398: ALTER TABLE `fnview` ADD `vrefresh` int(11) NOT NULL DEFAULT '0'; 399: ALTER TABLE `fnview` CHANGE `vlinkv` `vlinkv` bigint(20) unsigned NOT NULL DEFAULT '0'; 400: ALTER TABLE `fnview` ADD `vlinkv` bigint(20) unsigned NOT NULL DEFAULT '0'; 401: ALTER TABLE `fnview` CHANGE `vcolumns` `vcolumns` smallint(6) NOT NULL DEFAULT '0'; 402: ALTER TABLE `fnview` ADD `vcolumns` smallint(6) NOT NULL DEFAULT '0'; 403: ALTER TABLE `fnview` CHANGE `vcolon` `vcolon` tinyint(1) NOT NULL DEFAULT '1'; 404: ALTER TABLE `fnview` ADD `vcolon` tinyint(1) NOT NULL DEFAULT '1'; 405: ALTER TABLE `fnview` CHANGE `vdashes` `vdashes` tinyint(1) NOT NULL DEFAULT '1'; 406: ALTER TABLE `fnview` ADD `vdashes` tinyint(1) NOT NULL DEFAULT '1'; 407: ALTER TABLE `fnview` CHANGE `vtimeago` `vtimeago` tinyint(1) NOT NULL DEFAULT '1'; 408: ALTER TABLE `fnview` ADD `vtimeago` tinyint(1) NOT NULL DEFAULT '1'; 409: -- 410: -- Table: fnviewitem 411: -- DESCRIBE fnviewitem 412: ALTER TABLE `fnviewitem` CHANGE `viewitemid` `viewitemid` bigint(20) unsigned NOT NULL auto_increment; 413: ALTER TABLE `fnviewitem` ADD `viewitemid` bigint(20) unsigned NOT NULL auto_increment; 414: ALTER TABLE `fnviewitem` ADD PRIMARY KEY( `viewitemid` ); 415: ALTER TABLE `fnviewitem` CHANGE `viewid` `viewid` bigint(20) unsigned NOT NULL DEFAULT '0'; 416: ALTER TABLE `fnviewitem` ADD `viewid` bigint(20) unsigned NOT NULL DEFAULT '0'; 417: CREATE INDEX `viewid` ON `fnviewitem` ( `viewid` ); 418: ALTER TABLE `fnviewitem` CHANGE `itype` `itype` varchar(128) NOT NULL; 419: ALTER TABLE `fnviewitem` ADD `itype` varchar(128) NOT NULL; 420: ALTER TABLE `fnviewitem` CHANGE `ioption` `ioption` varchar(250) NOT NULL; 421: ALTER TABLE `fnviewitem` ADD `ioption` varchar(250) NOT NULL; 422: ALTER TABLE `fnviewitem` CHANGE `icolour` `icolour` tinyint(1) NOT NULL DEFAULT '1'; 423: ALTER TABLE `fnviewitem` ADD `icolour` tinyint(1) NOT NULL DEFAULT '1'; 424: ALTER TABLE `fnviewitem` CHANGE `itextstatus` `itextstatus` tinyint(1) NOT NULL DEFAULT '0'; 425: ALTER TABLE `fnviewitem` ADD `itextstatus` tinyint(1) NOT NULL DEFAULT '0'; 426: ALTER TABLE `fnviewitem` CHANGE `idetail` `idetail` smallint(5) unsigned NOT NULL DEFAULT '0'; 427: ALTER TABLE `fnviewitem` ADD `idetail` smallint(5) unsigned NOT NULL DEFAULT '0'; 428: ALTER TABLE `fnviewitem` CHANGE `iweight` `iweight` int(10) unsigned NOT NULL DEFAULT '0'; 429: ALTER TABLE `fnviewitem` ADD `iweight` int(10) unsigned NOT NULL DEFAULT '0'; 430: ALTER TABLE `fnviewitem` CHANGE `isize` `isize` smallint(6) NOT NULL DEFAULT '0'; 431: ALTER TABLE `fnviewitem` ADD `isize` smallint(6) NOT NULL DEFAULT '0'; 432: ALTER TABLE `fnviewitem` CHANGE `igraphic` `igraphic` smallint(6) NOT NULL DEFAULT '0'; 433: ALTER TABLE `fnviewitem` ADD `igraphic` smallint(6) NOT NULL DEFAULT '0'; 434: ALTER TABLE `fnviewitem` CHANGE `iname` `iname` varchar(64) NOT NULL; 435: ALTER TABLE `fnviewitem` ADD `iname` varchar(64) NOT NULL; 436: -- 437: