Merge pull request #751 from o-psi/fix-account-type-default

[Critical] Fix bug introduced in account type update
This commit is contained in:
wrongecho 2023-10-12 15:49:03 +01:00 committed by GitHub
commit 448aaa8c1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
db.sql
View File

@ -28,7 +28,7 @@ CREATE TABLE `accounts` (
`opening_balance` decimal(15,2) NOT NULL DEFAULT 0.00,
`account_currency_code` varchar(200) NOT NULL,
`account_notes` text DEFAULT NULL,
`account_type` int(6) NOT NULL DEFAULT NULL,
`account_type` int(6) NOT NULL DEFAULT 0,
`account_created_at` datetime NOT NULL DEFAULT current_timestamp(),
`account_updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(),
`account_archived_at` datetime DEFAULT NULL,