summaryrefslogtreecommitdiff
path: root/src/sql/mysql/updates/update_2_to_3.sql
blob: feb8ee2ac463211fc24b1ca355e065959f7f80e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
-- add table tmw_transactions to store transactional history
CREATE TABLE IF NOT EXISTS `tmw_transactions` (
  `id` int(11) NOT NULL,
  `char_id` int(11) NOT NULL,
  `action` int(11) NOT NULL,
  `message` text,
  `time` int(11) NOT NULL,
  PRIMARY KEY  (`id`)
);

ALTER TABLE `tmw_transactions` CHANGE `id` `id` INT( 11 ) NOT NULL AUTO_INCREMENT;
 
-- update the database version, and set date of update
UPDATE tmw_world_states
   SET value      = '3',
       moddate    = UNIX_TIMESTAMP()
 WHERE state_name = 'database_version';