feat(accident): update accident field type and enhance textarea styling

- Changed the accident field type from STRING to TEXT in the Accident model to accommodate larger input.
- Increased the minimum height of the textarea in AccidentFormDialog and added font styling for improved readability.
This commit is contained in:
Torsten Schulz (local)
2026-01-14 14:00:42 +01:00
parent bf082ea995
commit 515e04d1e3
2 changed files with 4 additions and 1 deletions

View File

@@ -0,0 +1,3 @@
-- Change accident field from VARCHAR to TEXT to allow longer descriptions
ALTER TABLE `accident`
MODIFY COLUMN `accident` TEXT NOT NULL;

View File

@@ -13,7 +13,7 @@ const Accident = sequelize.define('Accident', {
allowNull: false,
},
accident: {
type: DataTypes.STRING,
type: DataTypes.TEXT,
allowNull: false,
set(value) {
const encryptedValue = encryptData(value);