summaryrefslogtreecommitdiff
path: root/src/sql/mysql/updates
diff options
context:
space:
mode:
authorBlue112 <bluesansdouze@gmail.com>2009-04-19 19:12:01 +0200
committerJared Adams <jaxad0127@gmail.com>2009-04-19 11:24:12 -0600
commit85bf3af943be6c4cee137c214fb7015ce8fd466a (patch)
tree9b7cef5d807f2007ee757ef46043a6e08133035e /src/sql/mysql/updates
parenta894af35f20a6f7c0b1d86e3f9b35863cea75d2d (diff)
downloadmanaserv-85bf3af943be6c4cee137c214fb7015ce8fd466a.tar.gz
manaserv-85bf3af943be6c4cee137c214fb7015ce8fd466a.tar.bz2
manaserv-85bf3af943be6c4cee137c214fb7015ce8fd466a.tar.xz
manaserv-85bf3af943be6c4cee137c214fb7015ce8fd466a.zip
Update script mysql 2 to 3
Diffstat (limited to 'src/sql/mysql/updates')
-rw-r--r--src/sql/mysql/updates/update_2_to_3.sql16
1 files changed, 16 insertions, 0 deletions
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