Added option for promotional emails to signup page
This commit is contained in:
+12
-16
@@ -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
|
||||
;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user