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

update setup.php #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion php/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
die(__LINE__ . ' Unable to select database. Run setup first: ' . $mysqli->errno);
}

$result = $mysqli->query('CREATE TABLE IF NOT EXISTS invoices (invoice_id INTEGER, price_in_usd DOUBLE, price_in_btc DOUBLE, product_url TEXT, PRIMARY KEY (invoice_id))');
$result = $mysqli->query('CREATE TABLE IF NOT EXISTS invoices (invoice_id INTEGER, price_in_usd DOUBLE, price_in_btc DOUBLE, product_url TEXT, address CHAR(35), PRIMARY KEY (invoice_id))');

if (!$result) {
die(__LINE__ . ' Invalid query: ' . $mysqli->errno);
Expand Down