Renamed huntpass SQL column is_paytowin to is_premium.

This commit is contained in:
MobiusDevelopment 2023-01-09 22:38:44 +00:00
parent 36374f7a49
commit 9cba6a7a3a
6 changed files with 9 additions and 9 deletions

View File

@ -4,7 +4,7 @@ CREATE TABLE IF NOT EXISTS `huntpass` (
`current_step` INT NOT NULL DEFAULT 0,
`points` INT NOT NULL DEFAULT 0,
`reward_step` INT NOT NULL DEFAULT 0,
`is_paytowin` BOOLEAN NOT NULL DEFAULT FALSE,
`is_premium` BOOLEAN NOT NULL DEFAULT FALSE,
`premium_reward_step` INT NOT NULL DEFAULT 0,
`sayha_points_available` INT NOT NULL DEFAULT 0,
`sayha_points_used` INT NOT NULL DEFAULT 0,

View File

@ -41,7 +41,7 @@ public class HuntPass
{
private static final Logger LOGGER = Logger.getLogger(HuntPass.class.getName());
private static final String INSERT_SEASONPASS = "REPLACE INTO huntpass (`account_name`, `current_step`, `points`, `reward_step`, `is_paytowin`, `premium_reward_step`, `sayha_points_available`, `sayha_points_used`, `unclaimed_reward`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)";
private static final String INSERT_SEASONPASS = "REPLACE INTO huntpass (`account_name`, `current_step`, `points`, `reward_step`, `is_premium`, `premium_reward_step`, `sayha_points_available`, `sayha_points_used`, `unclaimed_reward`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)";
private static final String RESTORE_SEASONPASS = "SELECT * FROM huntpass WHERE account_name=?";
private final Player _user;
@ -87,7 +87,7 @@ public class HuntPass
setPoints(rset.getInt("points"));
setCurrentStep(rset.getInt("current_step"));
setRewardStep(rset.getInt("reward_step"));
setPremium(rset.getBoolean("is_paytowin"));
setPremium(rset.getBoolean("is_premium"));
setPremiumRewardStep(rset.getInt("premium_reward_step"));
setAvailableSayhaTime(rset.getInt("sayha_points_available"));
setUsedSayhaTime(rset.getInt("sayha_points_used"));

View File

@ -4,7 +4,7 @@ CREATE TABLE IF NOT EXISTS `huntpass` (
`current_step` INT NOT NULL DEFAULT 0,
`points` INT NOT NULL DEFAULT 0,
`reward_step` INT NOT NULL DEFAULT 0,
`is_paytowin` BOOLEAN NOT NULL DEFAULT FALSE,
`is_premium` BOOLEAN NOT NULL DEFAULT FALSE,
`premium_reward_step` INT NOT NULL DEFAULT 0,
`sayha_points_available` INT NOT NULL DEFAULT 0,
`sayha_points_used` INT NOT NULL DEFAULT 0,

View File

@ -41,7 +41,7 @@ public class HuntPass
{
private static final Logger LOGGER = Logger.getLogger(HuntPass.class.getName());
private static final String INSERT_SEASONPASS = "REPLACE INTO huntpass (`account_name`, `current_step`, `points`, `reward_step`, `is_paytowin`, `premium_reward_step`, `sayha_points_available`, `sayha_points_used`, `unclaimed_reward`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)";
private static final String INSERT_SEASONPASS = "REPLACE INTO huntpass (`account_name`, `current_step`, `points`, `reward_step`, `is_premium`, `premium_reward_step`, `sayha_points_available`, `sayha_points_used`, `unclaimed_reward`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)";
private static final String RESTORE_SEASONPASS = "SELECT * FROM huntpass WHERE account_name=?";
private final Player _user;
@ -87,7 +87,7 @@ public class HuntPass
setPoints(rset.getInt("points"));
setCurrentStep(rset.getInt("current_step"));
setRewardStep(rset.getInt("reward_step"));
setPremium(rset.getBoolean("is_paytowin"));
setPremium(rset.getBoolean("is_premium"));
setPremiumRewardStep(rset.getInt("premium_reward_step"));
setAvailableSayhaTime(rset.getInt("sayha_points_available"));
setUsedSayhaTime(rset.getInt("sayha_points_used"));

View File

@ -4,7 +4,7 @@ CREATE TABLE IF NOT EXISTS `huntpass` (
`current_step` INT NOT NULL DEFAULT 0,
`points` INT NOT NULL DEFAULT 0,
`reward_step` INT NOT NULL DEFAULT 0,
`is_paytowin` BOOLEAN NOT NULL DEFAULT FALSE,
`is_premium` BOOLEAN NOT NULL DEFAULT FALSE,
`premium_reward_step` INT NOT NULL DEFAULT 0,
`sayha_points_available` INT NOT NULL DEFAULT 0,
`sayha_points_used` INT NOT NULL DEFAULT 0,

View File

@ -41,7 +41,7 @@ public class HuntPass
{
private static final Logger LOGGER = Logger.getLogger(HuntPass.class.getName());
private static final String INSERT_SEASONPASS = "REPLACE INTO huntpass (`account_name`, `current_step`, `points`, `reward_step`, `is_paytowin`, `premium_reward_step`, `sayha_points_available`, `sayha_points_used`, `unclaimed_reward`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)";
private static final String INSERT_SEASONPASS = "REPLACE INTO huntpass (`account_name`, `current_step`, `points`, `reward_step`, `is_premium`, `premium_reward_step`, `sayha_points_available`, `sayha_points_used`, `unclaimed_reward`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)";
private static final String RESTORE_SEASONPASS = "SELECT * FROM huntpass WHERE account_name=?";
private final Player _user;
@ -87,7 +87,7 @@ public class HuntPass
setPoints(rset.getInt("points"));
setCurrentStep(rset.getInt("current_step"));
setRewardStep(rset.getInt("reward_step"));
setPremium(rset.getBoolean("is_paytowin"));
setPremium(rset.getBoolean("is_premium"));
setPremiumRewardStep(rset.getInt("premium_reward_step"));
setAvailableSayhaTime(rset.getInt("sayha_points_available"));
setUsedSayhaTime(rset.getInt("sayha_points_used"));