AWWC6P5ZVFDQHX3EAYDG4DKTUZ6A5LHQAV3NIUO3VP6FM7JKPK5AC
EFSXYZPOGA5M4DN65IEIDO7JK6U34DMQELAPHOIL2UAT6HRC66BAC
PGZJ736CG2E4HXIRYTZTGOMJRX2CHPIFG6H45PPO57EONOWJJ74QC
ADMKQQGCGVSHHIMVQ4XFRDCG544SBJCYALSKZV45CQQBZ4ACUH2AC
VV6ESCEVDM6GPBLEQVFGSUVU45D66GR34U6CEBFF7CLKCT3KRSCQC
SOIAMXLWIB5RIEMKXUFMBSE2SKQQTMHYSW3DKUX6GEV4VNOQVHAQC
GMYPBCWEB6NKURRILAHR3TJUKDOGR2ZMK5I6MS6P5G2LAGH36P3QC
LEINLS3X55PB6TSCNC5RVMDMV56XHTV4MNDUC42H7DDFMPDYUNTAC
IZEVQF627FA7VV25KJAWYWGGC35LZUUBBQRPN5ZAINTQLPEDRTEAC
B6HWAPDPXIWH7CHK5VLMWLL6EQN6NOFZEFYO47BPUY2ZO4SL7VDAC
HMDM3B557TO5RYP2IGFFC2C2VN6HYZTDQ47CJY2O37BW55DSMFZAC
IPG33FAWXGEQ2PO6OXRT2PWWXHRNMPVUKKADL6UKKN5GD2CNZ25AC
73NDXDEZRMK672GHSTC3CI6YHXFZ2GGJI5IKQGHKFDZKTNSQXLLQC
2WOOGXDHVQ6L2MQYUTLJ6H6FVSQNJN6SMJL5DG7HAHFYPJLRT2SAC
Description: (Describe migration here.)
Created: 2020-06-06 03:54:56.188542 UTC
Depends: 2016-10-13_05-36-55_user-event-log
Apply: |
ALTER TABLE users ADD COLUMN default_payment_network text NOT NULL DEFAULT 'btc';
ALTER TABLE users RENAME COLUMN btc_addr TO default_payment_addr;
ALTER TABLE work_events ADD COLUMN credit_to_network text;
UPDATE work_events SET credit_to_network = 'btc'
WHERE credit_to_address IS NOT NULL;
Revert: |
ALTER TABLE work_events DROP COLUMN credit_to_network;
ALTER TABLE users RENAME COLUMN default_payment_addr TO btc_addr;
ALTER TABLE users DROP COLUMN default_payment_network;