Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions modules/python/dionaea/logsql.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def start(self):
try:
logger.debug("Trying to update table: emu_services")
self.cursor.execute(
"""SELECT emu_serivce FROM emu_services LIMIT 1""")
"""SELECT emu_service FROM emu_services LIMIT 1""")
self.cursor.execute(
"""ALTER TABLE emu_services RENAME TO emu_services_old""")
update = True
Expand All @@ -240,7 +240,7 @@ def start(self):

self.cursor.execute("""CREATE TABLE IF NOT EXISTS
emu_services (
emu_serivce INTEGER PRIMARY KEY,
emu_service INTEGER PRIMARY KEY,
connection INTEGER,
emu_service_url TEXT
-- CONSTRAINT emu_services_connection_fkey FOREIGN KEY (connection) REFERENCES connections (connection)
Expand All @@ -253,7 +253,7 @@ def start(self):
INSERT INTO
emu_services (emu_service, connection, emu_service_url)
SELECT
emu_serivce, connection, emu_service_url
emu_service, connection, emu_service_url
FROM emu_services_old""")
self.cursor.execute("""DROP TABLE emu_services_old""")
logger.debug("... done")
Expand Down