before adding new ones; also, remove a lingering reference to alert_message in
Storage/CDBI/actor.pm
Signed-off-by: Jason Etheridge <jason@EquinoxInitiative.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
ident_type2 ident_value2 net_access_level alias
photo_url create_date expire_date credit_forward_balance
super_user usrgroup passwd card last_xact_id
- standing barred profile prefix suffix alert_message
+ standing barred profile prefix suffix
day_phone evening_phone other_phone mailing_address
claims_never_checked_out_count last_update_time/ );
ALTER TABLE actor.usr_standing_penalty ADD COLUMN usr_message BIGINT REFERENCES actor.usr_message(id);
+-- alright, let's set all existing user messages to public
+
+UPDATE actor.usr_message SET pub = TRUE;
+
-- alright, let's migrate penalty notes to usr_messages and link the messages back to the penalties:
CREATE TEMP TABLE XXXX_penalty_notes AS