OSDN Git Service

fix (#340)
authorHAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
Sat, 20 Jul 2019 06:14:28 +0000 (14:14 +0800)
committerPaladz <yzhu101@uottawa.ca>
Sat, 20 Jul 2019 06:14:28 +0000 (14:14 +0800)
docs/federation/sql_dump/federation_shema.sql

index adfaa62..946f10c 100644 (file)
@@ -54,7 +54,7 @@ CREATE TABLE `cross_transactions` (
   `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
   `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
   PRIMARY KEY (`id`),
-  UNIQUE KEY `chain_id` (`chain_id`),
+  KEY `chain_id` (`chain_id`),
   UNIQUE KEY `source_tx_hash` (`source_tx_hash`),
   UNIQUE KEY `dest_tx_hash` (`dest_tx_hash`),
   CONSTRAINT `cross_transactions_ibfk_1` FOREIGN KEY (`chain_id`) REFERENCES `chains` (`id`)