bpm91
Advanced OT User
- Joined
- May 23, 2019
- Messages
- 1,046
- Solutions
- 7
- Reaction score
- 180
- Location
- Brazil
- YouTube
- caruniawikibr
hello, I would like to know how to add in the premium time database. tfs 1.5
-- Set 30 days
-- UPDATE accounts SET premium_ends_at = UNIX_TIMESTAMP() + 86400 * 30 WHERE id = 1;
-- Add 30 days
-- UPDATE accounts SET premium_ends_at = premium_ends_at + 86400 * 30 WHERE id = 1;
-- Set 30 days
-- UPDATE accounts SET premium_ends_at = UNIX_TIMESTAMP() + 86400 * 30 WHERE id = 1;
-- Add 30 days
-- UPDATE accounts SET premium_ends_at = premium_ends_at + 86400 * 30 WHERE id = 1;
I used this code below, but all accounts had 7 days of premium account, how do I get accounts that already have premium to add +7 instead of all having 7?LUA:-- Set 30 days -- UPDATE accounts SET premium_ends_at = UNIX_TIMESTAMP() + 86400 * 30 WHERE id = 1;
...LUA:-- Add 30 days -- UPDATE accounts SET premium_ends_at = premium_ends_at + 86400 * 30 WHERE id = 1;
UPDATE accounts SET premium_ends_at = UNIX_TIMESTAMP() + 86400 * 7