From 85bf3af943be6c4cee137c214fb7015ce8fd466a Mon Sep 17 00:00:00 2001 From: Blue112 Date: Sun, 19 Apr 2009 19:12:01 +0200 Subject: Update script mysql 2 to 3 --- src/sql/mysql/updates/update_2_to_3.sql | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/sql/mysql/updates/update_2_to_3.sql (limited to 'src') diff --git a/src/sql/mysql/updates/update_2_to_3.sql b/src/sql/mysql/updates/update_2_to_3.sql new file mode 100644 index 00000000..4edd398f --- /dev/null +++ b/src/sql/mysql/updates/update_2_to_3.sql @@ -0,0 +1,16 @@ + +-- add table tmw_transactions to store transactional history +CREATE TABLE tmw_transactions +( + id INTEGER PRIMARY KEY, + char_id INTEGER NOT NULL, + action INTEGER NOT NULL, + message TEXT, + time INTEGER NOT NULL +); + +-- update the database version, and set date of update +UPDATE tmw_world_states + SET value = '3', + moddate = UNIX_TIMESTAMP() + WHERE state_name = 'database_version'; \ No newline at end of file -- cgit v1.2.3-70-g09d2