DROP TABLE IF EXISTS log_messages;
CREATE TABLE log_messages (
	id                   INTEGER PRIMARY KEY,
	log_time             INTEGER NOT NULL DEFAULT 0,
	log_type             TEXT    NOT NULL DEFAULT '',
	message              TEXT    NOT NULL,
	account              TEXT    NOT NULL DEFAULT '',
	client_data_version  INTEGER NOT NULL DEFAULT 0,
	log_entry_archived   INTEGER NOT NULL DEFAULT 0,
	type                 TEXT,
	name                 TEXT    NOT NULL,
	version              TEXT
);
