DROP TABLE IF EXISTS character_lua_history;
CREATE TABLE character_lua_history (
	id       INTEGER PRIMARY KEY,
	char_id  INTEGER NOT NULL DEFAULT 0,
	event_id INTEGER NOT NULL DEFAULT 0,
	value    INTEGER NOT NULL DEFAULT 0,
	value2   INTEGER NOT NULL DEFAULT 0,
	UNIQUE(char_id, event_id)
);
