Renamed huntpass SQL column is_paytowin to is_premium.
This commit is contained in:
parent
36374f7a49
commit
9cba6a7a3a
@ -4,7 +4,7 @@ CREATE TABLE IF NOT EXISTS `huntpass` (
|
|||||||
`current_step` INT NOT NULL DEFAULT 0,
|
`current_step` INT NOT NULL DEFAULT 0,
|
||||||
`points` INT NOT NULL DEFAULT 0,
|
`points` INT NOT NULL DEFAULT 0,
|
||||||
`reward_step` 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,
|
`premium_reward_step` INT NOT NULL DEFAULT 0,
|
||||||
`sayha_points_available` INT NOT NULL DEFAULT 0,
|
`sayha_points_available` INT NOT NULL DEFAULT 0,
|
||||||
`sayha_points_used` INT NOT NULL DEFAULT 0,
|
`sayha_points_used` INT NOT NULL DEFAULT 0,
|
||||||
|
@ -41,7 +41,7 @@ public class HuntPass
|
|||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(HuntPass.class.getName());
|
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 static final String RESTORE_SEASONPASS = "SELECT * FROM huntpass WHERE account_name=?";
|
||||||
|
|
||||||
private final Player _user;
|
private final Player _user;
|
||||||
@ -87,7 +87,7 @@ public class HuntPass
|
|||||||
setPoints(rset.getInt("points"));
|
setPoints(rset.getInt("points"));
|
||||||
setCurrentStep(rset.getInt("current_step"));
|
setCurrentStep(rset.getInt("current_step"));
|
||||||
setRewardStep(rset.getInt("reward_step"));
|
setRewardStep(rset.getInt("reward_step"));
|
||||||
setPremium(rset.getBoolean("is_paytowin"));
|
setPremium(rset.getBoolean("is_premium"));
|
||||||
setPremiumRewardStep(rset.getInt("premium_reward_step"));
|
setPremiumRewardStep(rset.getInt("premium_reward_step"));
|
||||||
setAvailableSayhaTime(rset.getInt("sayha_points_available"));
|
setAvailableSayhaTime(rset.getInt("sayha_points_available"));
|
||||||
setUsedSayhaTime(rset.getInt("sayha_points_used"));
|
setUsedSayhaTime(rset.getInt("sayha_points_used"));
|
||||||
|
@ -4,7 +4,7 @@ CREATE TABLE IF NOT EXISTS `huntpass` (
|
|||||||
`current_step` INT NOT NULL DEFAULT 0,
|
`current_step` INT NOT NULL DEFAULT 0,
|
||||||
`points` INT NOT NULL DEFAULT 0,
|
`points` INT NOT NULL DEFAULT 0,
|
||||||
`reward_step` 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,
|
`premium_reward_step` INT NOT NULL DEFAULT 0,
|
||||||
`sayha_points_available` INT NOT NULL DEFAULT 0,
|
`sayha_points_available` INT NOT NULL DEFAULT 0,
|
||||||
`sayha_points_used` INT NOT NULL DEFAULT 0,
|
`sayha_points_used` INT NOT NULL DEFAULT 0,
|
||||||
|
@ -41,7 +41,7 @@ public class HuntPass
|
|||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(HuntPass.class.getName());
|
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 static final String RESTORE_SEASONPASS = "SELECT * FROM huntpass WHERE account_name=?";
|
||||||
|
|
||||||
private final Player _user;
|
private final Player _user;
|
||||||
@ -87,7 +87,7 @@ public class HuntPass
|
|||||||
setPoints(rset.getInt("points"));
|
setPoints(rset.getInt("points"));
|
||||||
setCurrentStep(rset.getInt("current_step"));
|
setCurrentStep(rset.getInt("current_step"));
|
||||||
setRewardStep(rset.getInt("reward_step"));
|
setRewardStep(rset.getInt("reward_step"));
|
||||||
setPremium(rset.getBoolean("is_paytowin"));
|
setPremium(rset.getBoolean("is_premium"));
|
||||||
setPremiumRewardStep(rset.getInt("premium_reward_step"));
|
setPremiumRewardStep(rset.getInt("premium_reward_step"));
|
||||||
setAvailableSayhaTime(rset.getInt("sayha_points_available"));
|
setAvailableSayhaTime(rset.getInt("sayha_points_available"));
|
||||||
setUsedSayhaTime(rset.getInt("sayha_points_used"));
|
setUsedSayhaTime(rset.getInt("sayha_points_used"));
|
||||||
|
@ -4,7 +4,7 @@ CREATE TABLE IF NOT EXISTS `huntpass` (
|
|||||||
`current_step` INT NOT NULL DEFAULT 0,
|
`current_step` INT NOT NULL DEFAULT 0,
|
||||||
`points` INT NOT NULL DEFAULT 0,
|
`points` INT NOT NULL DEFAULT 0,
|
||||||
`reward_step` 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,
|
`premium_reward_step` INT NOT NULL DEFAULT 0,
|
||||||
`sayha_points_available` INT NOT NULL DEFAULT 0,
|
`sayha_points_available` INT NOT NULL DEFAULT 0,
|
||||||
`sayha_points_used` INT NOT NULL DEFAULT 0,
|
`sayha_points_used` INT NOT NULL DEFAULT 0,
|
||||||
|
@ -41,7 +41,7 @@ public class HuntPass
|
|||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(HuntPass.class.getName());
|
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 static final String RESTORE_SEASONPASS = "SELECT * FROM huntpass WHERE account_name=?";
|
||||||
|
|
||||||
private final Player _user;
|
private final Player _user;
|
||||||
@ -87,7 +87,7 @@ public class HuntPass
|
|||||||
setPoints(rset.getInt("points"));
|
setPoints(rset.getInt("points"));
|
||||||
setCurrentStep(rset.getInt("current_step"));
|
setCurrentStep(rset.getInt("current_step"));
|
||||||
setRewardStep(rset.getInt("reward_step"));
|
setRewardStep(rset.getInt("reward_step"));
|
||||||
setPremium(rset.getBoolean("is_paytowin"));
|
setPremium(rset.getBoolean("is_premium"));
|
||||||
setPremiumRewardStep(rset.getInt("premium_reward_step"));
|
setPremiumRewardStep(rset.getInt("premium_reward_step"));
|
||||||
setAvailableSayhaTime(rset.getInt("sayha_points_available"));
|
setAvailableSayhaTime(rset.getInt("sayha_points_available"));
|
||||||
setUsedSayhaTime(rset.getInt("sayha_points_used"));
|
setUsedSayhaTime(rset.getInt("sayha_points_used"));
|
||||||
|
Loading…
Reference in New Issue
Block a user