# File monit/lib/symbiosis/monitor/state_db.rb, line 27 def create_table sql = "CREATE TABLE IF NOT EXISTS #{@tbl_name} ( test TEXT NOT NULL, exitstatus INTEGER NOT NULL, output BLOB NOT NULL, timestamp INTEGER NOT NULL )" @dbh.execute(sql) sql = "CREATE INDEX IF NOT EXISTS test_timestamp ON #{@tbl_name} (test, timestamp)" @dbh.execute(sql) end