Added option for promotional emails to signup page

This commit is contained in:
2019-06-14 16:29:06 +10:00
parent 921693c12d
commit e1744d6964
5 changed files with 31 additions and 25 deletions
+12 -16
View File
@@ -1,20 +1,16 @@
#NOTE: ALWAYS, ALWAYS, ALWAYS write a script in revert.sql that undoes these changes
ALTER TABLE
signups
ADD COLUMN
promotions BOOLEAN DEFAULT FALSE
AFTER
hash
;
ALTER TABLE
pastSpying
MODIFY COLUMN
success ENUM ('success', 'failure', 'ineffective')
;
UPDATE
pastSpying
SET
success = 'ineffective'
WHERE
success = 'success'
AND
spoilsGold = 0
AND
(SELECT COUNT(*) FROM equipmentStolen WHERE pastSpyingId = pastSpying.id) = 0
accounts
ADD COLUMN
promotions BOOLEAN DEFAULT FALSE
AFTER
hash
;