Small update

This commit is contained in:
Pinga 2023-12-01 10:53:58 +02:00
parent 32466ef60c
commit db75518533
3 changed files with 3 additions and 3 deletions

View file

@ -113,7 +113,7 @@ try {
$response = curl_exec($curl); $response = curl_exec($curl);
if ($response === false) { if ($response === false) {
$log->error('Curl error: ' . curl_error($curl) . curl_errno($curl)); throw new Exception(curl_error($curl), curl_errno($curl));
} }
curl_close($curl); curl_close($curl);
@ -123,4 +123,6 @@ try {
} }
} catch (PDOException $e) { } catch (PDOException $e) {
$log->error('Database error: ' . $e->getMessage()); $log->error('Database error: ' . $e->getMessage());
} catch (Throwable $e) {
$log->error('Error: ' . $e->getMessage());
} }

View file

@ -175,7 +175,6 @@ CREATE TABLE IF NOT EXISTS `registry`.`statement` (
CREATE TABLE IF NOT EXISTS `registry`.`invoices` ( CREATE TABLE IF NOT EXISTS `registry`.`invoices` (
`id` INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY, `id` INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY,
`invoice_number` VARCHAR(20),
`registrar_id` INT(10) UNSIGNED, `registrar_id` INT(10) UNSIGNED,
`billing_contact_id` INT(10) UNSIGNED, `billing_contact_id` INT(10) UNSIGNED,
`issue_date` DATETIME(3), `issue_date` DATETIME(3),

View file

@ -180,7 +180,6 @@ CREATE TABLE registry.statement (
CREATE TABLE registry.invoices ( CREATE TABLE registry.invoices (
"id" SERIAL PRIMARY KEY, "id" SERIAL PRIMARY KEY,
"invoice_number" VARCHAR(20),
"registrar_id" INT, "registrar_id" INT,
"billing_contact_id" INT, "billing_contact_id" INT,
"issue_date" TIMESTAMP(3), "issue_date" TIMESTAMP(3),