Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 630d7ab

Browse files
committed
Fix lastDisputeExpiryNotifiedAt error
1 parent 7c31fdd commit 630d7ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

repo/migrations/Migration029.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ var (
1717
AM02_insert_sales = "INSERT INTO sales SELECT orderID, contract, state, read, timestamp, total, thumbnail, buyerID, buyerHandle, title, shippingName, shippingAddress, paymentAddr, funded, transactions, lastDisputeTimeoutNotifiedAt, coinType, paymentCoin FROM temp_sales;"
1818
AM02_drop_temp_sales = "DROP TABLE temp_sales;"
1919

20+
AM02_up_update_purchases = "update purchases set lastDisputeExpiryNotifiedAt = 0 where lastDisputeExpiryNotifiedAt is NULL;"
2021
AM02_up_create_purchases = "create table purchases (orderID text primary key not null, contract blob, state integer, read integer, timestamp integer, total text, thumbnail text, vendorID text, vendorHandle text, title text, shippingName text, shippingAddress text, paymentAddr text, funded integer, transactions blob, lastDisputeTimeoutNotifiedAt integer not null default 0, lastDisputeExpiryNotifiedAt integer not null default 0, disputedAt integer not null default 0, coinType not null default '', paymentCoin not null default '');"
2122
AM02_down_create_purchases = "create table purchases (orderID text primary key not null, contract blob, state integer, read integer, timestamp integer, total integer, thumbnail text, vendorID text, vendorHandle text, title text, shippingName text, shippingAddress text, paymentAddr text, funded integer, transactions blob, lastDisputeTimeoutNotifiedAt integer not null default 0, lastDisputeExpiryNotifiedAt integer not null default 0, disputedAt integer not null default 0, coinType not null default '', paymentCoin not null default '');"
2223
AM02_temp_purchases = "ALTER TABLE purchases RENAME TO temp_purchases;"
@@ -56,6 +57,7 @@ func (AM02) Up(repoPath string, dbPassword string, testnet bool) error {
5657
}
5758

5859
upSequence := strings.Join([]string{
60+
AM02_up_update_purchases,
5961
AM02_temp_sales,
6062
AM02_up_create_sales,
6163
AM02_insert_sales,

0 commit comments

Comments
 (0)