Make the pulltoggle preference migration reference the proper table the preference should be in.

This commit is contained in:
D3athrow
2018-09-06 12:24:17 -05:00
parent 94b87aeb31
commit 34f72c28e6

View File

@@ -3,11 +3,11 @@
name = "Add Pull Preference"
/datum/migration/sqlite/ss13_prefs/_012/up()
if(!hasColumn("players","pulltoggle"))
return execute("ALTER TABLE `players` ADD COLUMN pulltoggle INTEGER DEFAULT 1")
if(!hasColumn("client","pulltoggle"))
return execute("ALTER TABLE `client` ADD COLUMN pulltoggle INTEGER DEFAULT 1")
return TRUE
/datum/migration/sqlite/ss13_prefs/_012/down()
if(hasColumn("players","pulltoggle"))
return execute("ALTER TABLE `players` DROP COLUMN pulltoggle")
if(hasColumn("client","pulltoggle"))
return execute("ALTER TABLE `client` DROP COLUMN pulltoggle")
return TRUE