Skip to content

Commit

Permalink
Lua code format - (Stylua)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 7, 2024
1 parent 0bc359d commit 723c057
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion data-otservbr-global/migrations/1.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function onUpdateDatabase()
logger.info("Updating database to version 1 (sample players)")
logger.info("Updating database to version 1 (sample players)")
-- Rook Sample
db.query("UPDATE `players` SET `level` = 2, `vocation` = 0, `health` = 155, `healthmax` = 155, `experience` = 100, `soul` = 100, `lookbody` = 113, `lookfeet` = 115, `lookhead` = 95, `looklegs` = 39, `looktype` = 129, `mana` = 60, `manamax` = 60, `town_id` = 1, `cap` = 410 WHERE `id` = 1;")
-- Sorcerer Sample
Expand Down
1 change: 0 additions & 1 deletion data-otservbr-global/migrations/18.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,4 @@ function onUpdateDatabase()
`monster_list` BLOB NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
]])

end
1 change: 0 additions & 1 deletion data-otservbr-global/migrations/19.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ function onUpdateDatabase()
db.query("ALTER TABLE `accounts` ADD `tournament_coins` int(11) NOT NULL DEFAULT 0 AFTER `coins`")
db.query("ALTER TABLE `store_history` ADD `coin_type` tinyint(1) NOT NULL DEFAULT 0 AFTER `description`")
db.query("ALTER TABLE `store_history` DROP COLUMN `coins`") -- Not in use anywhere.

end
1 change: 0 additions & 1 deletion data-otservbr-global/migrations/40.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ function onUpdateDatabase()
ALTER TABLE `house_lists`
MODIFY `version` bigint(20) NOT NULL DEFAULT '0';
]])

end
1 change: 0 additions & 1 deletion data-otservbr-global/migrations/41.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ function onUpdateDatabase()
MODIFY `xpboost_stamina` smallint(5) UNSIGNED DEFAULT NULL,
MODIFY `xpboost_value` tinyint(4) UNSIGNED DEFAULT NULL
]])

end
1 change: 0 additions & 1 deletion data-otservbr-global/migrations/42.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ function onUpdateDatabase()
ALTER TABLE `guildwar_kills`
DROP INDEX `guildwar_kills_unique`
]])

end
1 change: 0 additions & 1 deletion data-otservbr-global/migrations/43.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ function onUpdateDatabase()
ADD `payment` bigint(13) UNSIGNED NOT NULL DEFAULT '0',
ADD `duration_days` tinyint(3) UNSIGNED NOT NULL DEFAULT '0'
]])

end
1 change: 0 additions & 1 deletion data-otservbr-global/migrations/44.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ function onUpdateDatabase()
MODIFY COLUMN `manashield` INT UNSIGNED NOT NULL DEFAULT '0',
MODIFY COLUMN `max_manashield` INT UNSIGNED NOT NULL DEFAULT '0';
]])

end
1 change: 0 additions & 1 deletion data-otservbr-global/migrations/45.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,4 @@ function onUpdateDatabase()
INSERT INTO `account_vipgroups` (`id`, `account_id`, `name`, `customizable`)
SELECT 3, id, 'Trading Partners', 0 FROM `accounts`;
]])

end

0 comments on commit 723c057

Please sign in to comment.