mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Make the pulltoggle preference migration reference the proper table the preference should be in.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user