Files
vgstation13/code/modules/migrations/SS13/008-add-connection-log.dm
Pieter-Jan Briers 076d517505 Fixes MySQL migrations and brings them up to speed. (#11762)
* Fixes MySQL migrations and brings them up to speed.

* Removes debug and updates the .sql file.
2016-09-05 17:56:10 -05:00

20 lines
544 B
Plaintext

/datum/migration/mysql/ss13/_008
id = 8
name = "Add connection log table."
/datum/migration/mysql/ss13/_008/up()
var/sql={"
CREATE TABLE IF NOT EXISTS erro_connection_log (
`id` int(11) NOT NULL AUTO_INCREMENT,
`datetime` datetime DEFAULT NULL,
`serverip` varchar(45) DEFAULT NULL,
`ckey` varchar(45) DEFAULT NULL,
`ip` varchar(18) DEFAULT NULL,
`computerid` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id`)
);"}
return execute(sql)
/datum/migration/mysql/ss13/_008/down()
return execute("DROP TABLE IF EXISTS erro_connection_log;");