Update db.sql

added not null value to prevent error 500 on CWP when value is null for company currency
This commit is contained in:
PowerChaos 2025-07-16 03:56:50 +02:00 committed by GitHub
parent 6df04390bb
commit dcd79d88ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

2
db.sql
View File

@ -554,7 +554,7 @@ CREATE TABLE `companies` (
`company_website` varchar(200) DEFAULT NULL,
`company_logo` varchar(250) DEFAULT NULL,
`company_locale` varchar(200) DEFAULT NULL,
`company_currency` varchar(200) DEFAULT 'USD',
`company_currency` varchar(200) NOT NULL DEFAULT 'USD',
`company_tax_id` varchar(200) DEFAULT NULL,
`company_created_at` datetime NOT NULL DEFAULT current_timestamp(),
`company_updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(),