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

Commit fc4a87f

Browse files
committed
Add test for lastDisputeExpiryNotifiedAt
1 parent a1f36ce commit fc4a87f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

repo/migrations/Migration029_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ var stmt = `PRAGMA key = 'letmein';
2424
vendorID text, vendorHandle text, title text,
2525
shippingName text, shippingAddress text, paymentAddr text,
2626
funded integer, transactions blob,
27-
lastDisputeTimeoutNotifiedAt integer not null default 0,
28-
lastDisputeExpiryNotifiedAt integer not null default 0,
27+
lastDisputeTimeoutNotifiedAt integer default 0,
28+
lastDisputeExpiryNotifiedAt integer default 0,
2929
disputedAt integer not null default 0, coinType not null default '',
3030
paymentCoin not null default '');
3131
create table inventory (invID text primary key not null, slug text, variantIndex integer, count integer);`
@@ -52,7 +52,7 @@ func TestMigration029(t *testing.T) {
5252
if _, err := db.Exec("INSERT INTO sales (orderID, total) values (?,?)", "asdf", 3); err != nil {
5353
t.Fatal(err)
5454
}
55-
if _, err := db.Exec("INSERT INTO purchases (orderID, total) values (?,?)", "asdf", 3); err != nil {
55+
if _, err := db.Exec("INSERT INTO purchases (orderID, total, lastDisputeExpiryNotifiedAt) values (?,?, NULL)", "asdf", 3); err != nil {
5656
t.Fatal(err)
5757
}
5858
if _, err := db.Exec("INSERT INTO inventory (invID, count) values (?,?)", "asdf", "3"); err != nil {

0 commit comments

Comments
 (0)