• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: Commit

Golang implemented sidechain for Bytom


Commit MetaInfo

Revisiondb2a15fbdd7ce34a3a9dbf8fc3c6de469371107e (tree)
Time2019-07-19 23:20:35
Authorpaladz <453256728@qq.c...>
Commiterpaladz

Log Message

delete the key index

Change Summary

Incremental Difference

--- a/docs/federation/sql_dump/federation_shema.sql
+++ b/docs/federation/sql_dump/federation_shema.sql
@@ -54,13 +54,9 @@ CREATE TABLE `cross_transactions` (
5454 `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
5555 `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
5656 PRIMARY KEY (`id`),
57- UNIQUE KEY `source_mux_id` (`chain_id`,`source_mux_id`),
58- UNIQUE KEY `source_tx_hash` (`chain_id`,`source_tx_hash`),
59- UNIQUE KEY `source_blockhash_txidx` (`chain_id`,`source_block_hash`,`source_tx_index`),
60- UNIQUE KEY `source_blockheight_txidx` (`chain_id`,`source_block_height`,`source_tx_index`),
61- UNIQUE KEY `dest_tx_hash` (`chain_id`,`dest_tx_hash`),
62- UNIQUE KEY `dest_blockhash_txidx` (`chain_id`,`dest_block_hash`,`dest_tx_index`),
63- UNIQUE KEY `dest_blockheight_txidx` (`chain_id`,`dest_block_height`,`dest_tx_index`),
57+ UNIQUE KEY `chain_id` (`chain_id`),
58+ UNIQUE KEY `source_tx_hash` (`source_tx_hash`),
59+ UNIQUE KEY `dest_tx_hash` (`dest_tx_hash`),
6460 CONSTRAINT `cross_transactions_ibfk_1` FOREIGN KEY (`chain_id`) REFERENCES `chains` (`id`)
6561 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
6662
@@ -83,7 +79,6 @@ CREATE TABLE `cross_transaction_reqs` (
8379 `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
8480 `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
8581 PRIMARY KEY (`id`),
86- UNIQUE KEY `req_id` (`cross_transaction_id`,`source_pos`),
8782 CONSTRAINT `cross_transaction_reqs_ibfk_1` FOREIGN KEY (`cross_transaction_id`) REFERENCES `cross_transactions` (`id`),
8883 CONSTRAINT `cross_transaction_reqs_ibfk_2` FOREIGN KEY (`asset_id`) REFERENCES `assets` (`id`)
8984 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Show on old repository browser