Skip to content

Commit

Permalink
Added Freeze transaction, fixed proto_ids which were incorrect (not u…
Browse files Browse the repository at this point in the history
…sed by mirror node)

Signed-off-by: Greg Scullard <gregscullard@hedera.com>
  • Loading branch information
Greg Scullard authored and steven-sheehy committed Aug 29, 2019
1 parent 436a288 commit 16cb8b2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/main/resources/db/migration/V1.10.1__freeze_transaction.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
INSERT INTO t_transaction_types (proto_id, name) values (23,'FREEZE');

UPDATE t_transaction_types set proto_id = 14 WHERE name = 'CRYPTOTRANSFER';
UPDATE t_transaction_types set proto_id = 15 WHERE name = 'CRYPTOUPDATEACCOUNT';
UPDATE t_transaction_types set proto_id = 12 WHERE name = 'CRYPTODELETE';
UPDATE t_transaction_types set proto_id = 10 WHERE name = 'CRYPTOADDCLAIM';
UPDATE t_transaction_types set proto_id = 13 WHERE name = 'CRYPTODELETECLAIM';
UPDATE t_transaction_types set proto_id = 7 WHERE name = 'CONTRACTCALL';
UPDATE t_transaction_types set proto_id = 8 WHERE name = 'CONTRACTCREATEINSTANCE';
UPDATE t_transaction_types set proto_id = 9 WHERE name = 'CONTRACTUPDATEINSTANCE';
UPDATE t_transaction_types set proto_id = 17 WHERE name = 'FILECREATE';
UPDATE t_transaction_types set proto_id = 16 WHERE name = 'FILEAPPEND';
UPDATE t_transaction_types set proto_id = 19 WHERE name = 'FILEUPDATE';
UPDATE t_transaction_types set proto_id = 18 WHERE name = 'FILEDELETE';
UPDATE t_transaction_types set proto_id = 11 WHERE name = 'CRYPTOCREATEACCOUNT';
UPDATE t_transaction_types set proto_id = 20 WHERE name = 'SYSTEMDELETE';
UPDATE t_transaction_types set proto_id = 21 WHERE name = 'SYSTEMUNDELETE';
UPDATE t_transaction_types set proto_id = 22 WHERE name = 'CONTRACTDELETEINSTANCE';

0 comments on commit 16cb8b2

Please sign in to comment.