mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Optimized Space Parallax (#10444)
* ok * asdfasd * rev3 * rev4 * rev, 5? * REB6 * rev7 * rev8 * final revision * Fix rebase * penultimate rev * final rev
This commit is contained in:
13
code/modules/migrations/SS13_Prefs/003-add-space-parallax.dm
Normal file
13
code/modules/migrations/SS13_Prefs/003-add-space-parallax.dm
Normal file
@@ -0,0 +1,13 @@
|
||||
/datum/migration/sqlite/ss13_prefs/_003
|
||||
id = 3
|
||||
name = "Add Space Parallax"
|
||||
|
||||
/datum/migration/sqlite/ss13_prefs/_003/up()
|
||||
if(!hasColumn("client","space_parallax"))
|
||||
return execute("ALTER TABLE `client` ADD COLUMN space_parallax INTEGER DEFAULT 1")
|
||||
return TRUE
|
||||
|
||||
/datum/migration/sqlite/ss13_prefs/_003/down()
|
||||
if(hasColumn("client","space_parallax"))
|
||||
return execute("ALTER TABLE `client` DROP COLUMN space_parallax")
|
||||
return TRUE
|
||||
13
code/modules/migrations/SS13_Prefs/004-add-space-dust.dm
Normal file
13
code/modules/migrations/SS13_Prefs/004-add-space-dust.dm
Normal file
@@ -0,0 +1,13 @@
|
||||
/datum/migration/sqlite/ss13_prefs/_004
|
||||
id = 4
|
||||
name = "Add Space Dust"
|
||||
|
||||
/datum/migration/sqlite/ss13_prefs/_004/up()
|
||||
if(!hasColumn("client","space_dust"))
|
||||
return execute("ALTER TABLE `client` ADD COLUMN space_dust INTEGER DEFAULT 1")
|
||||
return TRUE
|
||||
|
||||
/datum/migration/sqlite/ss13_prefs/_004/down()
|
||||
if(hasColumn("client","space_dust"))
|
||||
return execute("ALTER TABLE `client` DROP COLUMN space_dust")
|
||||
return TRUE
|
||||
13
code/modules/migrations/SS13_Prefs/005-add-parallax-speed.dm
Normal file
13
code/modules/migrations/SS13_Prefs/005-add-parallax-speed.dm
Normal file
@@ -0,0 +1,13 @@
|
||||
/datum/migration/sqlite/ss13_prefs/_005
|
||||
id = 5
|
||||
name = "Add Parallax Speed"
|
||||
|
||||
/datum/migration/sqlite/ss13_prefs/_005/up()
|
||||
if(!hasColumn("client","parallax_speed"))
|
||||
return execute("ALTER TABLE `client` ADD COLUMN parallax_speed INTEGER DEFAULT 2")
|
||||
return TRUE
|
||||
|
||||
/datum/migration/sqlite/ss13_prefs/_005/down()
|
||||
if(hasColumn("client","parallax_speed"))
|
||||
return execute("ALTER TABLE `client` DROP COLUMN parallax_speed")
|
||||
return TRUE
|
||||
Reference in New Issue
Block a user