mirror of
https://github.com/getnamingo/registry.git
synced 2025-05-14 00:27:03 +02:00
Small update
This commit is contained in:
parent
32466ef60c
commit
db75518533
3 changed files with 3 additions and 3 deletions
|
@ -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());
|
||||||
}
|
}
|
|
@ -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),
|
||||||
|
|
|
@ -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),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue