Fix BitocinGtxIO Foreign Key Definition
This commit is contained in:
parent
a13bbadd2e
commit
2c431ef4e0
2 changed files with 3 additions and 3 deletions
|
@ -309,7 +309,7 @@ public class GeneralAccountManager implements CryptoAccountManager, CryptoNetInf
|
|||
btTransaction.setCryptoCoinTransactionId(ccId);
|
||||
long btId = db.bitcoinTransactionDao().insertBitcoinTransaction(btTransaction)[0];
|
||||
for (BitcoinTransactionGTxIO gtxio : gtxios) {
|
||||
gtxio.setBitcoinTransactionId(btId);
|
||||
gtxio.setBitcoinTransactionId(ccId);
|
||||
db.bitcoinTransactionDao().insertBitcoinTransactionGTxIO(gtxio);
|
||||
}
|
||||
|
||||
|
|
|
@ -14,8 +14,8 @@ import android.arch.persistence.room.ForeignKey;
|
|||
primaryKeys = {"bitcoin_transaction_id", "io_index", "is_output"},
|
||||
foreignKeys = {
|
||||
@ForeignKey(
|
||||
entity = BitcoinTransaction.class,
|
||||
parentColumns = "crypto_coin_transaction_id",
|
||||
entity = CryptoCoinTransaction.class,
|
||||
parentColumns = "id",
|
||||
childColumns = "bitcoin_transaction_id",
|
||||
onDelete = ForeignKey.CASCADE
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue