ALTER TABLE users ADD pin_updated DATETIME DEFAULT NULL;
UPDATE users SET pin_updated = NOW() WHERE pin IS NOT NULL;

ALTER TABLE users ADD COLUMN division_id INT;
ALTER TABLE users ADD FOREIGN KEY idx_division (division_id) REFERENCES divisions (id);
