From bc53a7ebc875f561277d67a5c43a90ac67027601 Mon Sep 17 00:00:00 2001 From: Dakota Campbell Date: Sun, 20 Aug 2023 20:28:27 -0400 Subject: [PATCH] Update loaf_billing.sql to fix error in syntax According the MySQL documentation for it to correctly allow default of CURRENT_DATE it must be put inside of parenthesis. Used this fix on my SQL import and got no issues comparatively. --- loaf_billing.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/loaf_billing.sql b/loaf_billing.sql index e28e689..c45a5f6 100644 --- a/loaf_billing.sql +++ b/loaf_billing.sql @@ -2,7 +2,7 @@ CREATE TABLE IF NOT EXISTS `loaf_invoices` ( `id` VARCHAR(15), -- unique bill id - `issued` DATE DEFAULT CURRENT_DATE, -- the date the bill was issued + `issued` DATE DEFAULT (CURRENT_DATE), -- the date the bill was issued `biller` VARCHAR(150) NOT NULL, -- the identifier who issued the bill `biller_name` VARCHAR(150) NOT NULL, -- the name of the person who issued the bill @@ -25,4 +25,4 @@ CREATE TABLE IF NOT EXISTS `loaf_invoices` ( `signature` LONGTEXT, -- image data (url/base64) for the signature PRIMARY KEY (`id`) -); \ No newline at end of file +);