Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in the table emu_services #140

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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