Skip to content

Commit

Permalink
update sql
Browse files Browse the repository at this point in the history
  • Loading branch information
CoderZhi committed Oct 26, 2024
1 parent 31437a2 commit bda65d6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
22 changes: 0 additions & 22 deletions scripts/alter_transfer_table.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,6 @@ docker exec witness-db mysql -uroot -pkdfjjrU64fjK58H -e "ALTER TABLE witness.io
docker exec witness-db mysql -uroot -pkdfjjrU64fjK58H -e "ALTER TABLE witness.iotex_to_bsc_transfers ADD payload varchar(24576);"
docker exec witness-db mysql -uroot -pkdfjjrU64fjK58H -e "ALTER TABLE witness.iotex_to_matic_transfers ADD payload varchar(24576);"

docker exec witness-db mysql -uroot -pkdfjjrU64fjK58H -e "ALTER TABLE witness.bsc_transfers ADD sourceTxHash varchar(128) DEFAULT NULL;"
docker exec witness-db mysql -uroot -pkdfjjrU64fjK58H -e "ALTER TABLE witness.ethereum_transfers ADD sourceTxHash varchar(128) DEFAULT NULL;"
docker exec witness-db mysql -uroot -pkdfjjrU64fjK58H -e "ALTER TABLE witness.heco_transfers ADD sourceTxHash varchar(128) DEFAULT NULL;"
docker exec witness-db mysql -uroot -pkdfjjrU64fjK58H -e "ALTER TABLE witness.matic_transfers ADD sourceTxHash varchar(128) DEFAULT NULL;"
docker exec witness-db mysql -uroot -pkdfjjrU64fjK58H -e "ALTER TABLE witness.polis_transfers ADD sourceTxHash varchar(128) DEFAULT NULL;"
docker exec witness-db mysql -uroot -pkdfjjrU64fjK58H -e "ALTER TABLE witness.iotex_transfers ADD sourceTxHash varchar(128) DEFAULT NULL;"
docker exec witness-db mysql -uroot -pkdfjjrU64fjK58H -e "ALTER TABLE witness.iotex_to_heco_transfers ADD sourceTxHash varchar(128) DEFAULT NULL;"
docker exec witness-db mysql -uroot -pkdfjjrU64fjK58H -e "ALTER TABLE witness.iotex_to_polis_transfers ADD sourceTxHash varchar(128) DEFAULT NULL;"
docker exec witness-db mysql -uroot -pkdfjjrU64fjK58H -e "ALTER TABLE witness.iotex_to_bsc_transfers ADD sourceTxHash varchar(128) DEFAULT NULL;"
docker exec witness-db mysql -uroot -pkdfjjrU64fjK58H -e "ALTER TABLE witness.iotex_to_matic_transfers ADD sourceTxHash varchar(128) DEFAULT NULL;"

docker exec witness-db mysql -uroot -pkdfjjrU64fjK58H -e "ALTER TABLE witness.bsc_transfers ADD recipient varchar(256) DEFAULT NOT NULL;"
docker exec witness-db mysql -uroot -pkdfjjrU64fjK58H -e "ALTER TABLE witness.ethereum_transfers ADD recipient varchar(256) DEFAULT NOT NULL;"
docker exec witness-db mysql -uroot -pkdfjjrU64fjK58H -e "ALTER TABLE witness.heco_transfers ADD recipient varchar(256) DEFAULT NOT NULL;"
docker exec witness-db mysql -uroot -pkdfjjrU64fjK58H -e "ALTER TABLE witness.matic_transfers ADD recipient varchar(256) DEFAULT NOT NULL;"
docker exec witness-db mysql -uroot -pkdfjjrU64fjK58H -e "ALTER TABLE witness.polis_transfers ADD recipient varchar(256) DEFAULT NOT NULL;"
docker exec witness-db mysql -uroot -pkdfjjrU64fjK58H -e "ALTER TABLE witness.iotex_transfers ADD recipient varchar(256) DEFAULT NOT NULL;"
docker exec witness-db mysql -uroot -pkdfjjrU64fjK58H -e "ALTER TABLE witness.iotex_to_heco_transfers ADD recipient varchar(256) DEFAULT NOT NULL;"
docker exec witness-db mysql -uroot -pkdfjjrU64fjK58H -e "ALTER TABLE witness.iotex_to_polis_transfers ADD recipient varchar(256) DEFAULT NOT NULL;"
docker exec witness-db mysql -uroot -pkdfjjrU64fjK58H -e "ALTER TABLE witness.iotex_to_bsc_transfers ADD recipient varchar(256) DEFAULT NOT NULL;"
docker exec witness-db mysql -uroot -pkdfjjrU64fjK58H -e "ALTER TABLE witness.iotex_to_matic_transfers ADD recipient varchar(256) DEFAULT NOT NULL;"

docker exec witness-db mysql -uroot -pkdfjjrU64fjK58H -e "ALTER TABLE witness.bsc_transfers ADD recipient varchar(256);"
docker exec witness-db mysql -uroot -pkdfjjrU64fjK58H -e "ALTER TABLE witness.ethereum_transfers ADD recipient varchar(256);"
docker exec witness-db mysql -uroot -pkdfjjrU64fjK58H -e "ALTER TABLE witness.heco_transfers ADD recipient varchar(256);"
Expand Down
2 changes: 1 addition & 1 deletion witness-service/relayer/recorder.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (recorder *Recorder) initStore(
"`tidx` bigint(20) NOT NULL,"+
"`sender` varchar(64) NOT NULL,"+
"`txSender` varchar(64),"+
"`recipient` varchar(42) NOT NULL,"+
"`recipient` varchar(256) NOT NULL,"+
"`amount` varchar(78) NOT NULL,"+
"`fee` varchar(78),"+
"`blockHeight` bigint(20),"+
Expand Down

0 comments on commit bda65d6

Please sign in to comment.