Skip to content

Commit 9801afe

Browse files
author
HugoFara
committed
feat: add notes, hides romanization.
2 parents d7bea48 + b217883 commit 9801afe

27 files changed

+549
-246
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ ones are marked like "v1.0.0-fork".
99

1010
### Added
1111

12+
* **Notes Field for Terms** ([#128](https://github.com/HugoFara/lwt/issues/128)):
13+
Added a dedicated "Notes" field to terms/words, allowing users to add personal
14+
notes separate from translations. Includes database migration, updated entity
15+
classes, service layer, UI forms, and API endpoints.
1216
* Official support for PHP 8.3 and 8.4.
1317
* **Multi-user support** ([#221](https://github.com/HugoFara/lwt/issues/221)):
1418
Users are now stored in a dedicated `users` table with proper foreign key
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
-- Add notes field to words table
2+
-- This allows users to add personal notes separate from translations
3+
-- Issue: https://github.com/HugoFara/lwt/issues/128
4+
5+
ALTER TABLE `words`
6+
ADD COLUMN `WoNotes` VARCHAR(1000) DEFAULT NULL AFTER `WoSentence`;

db/schema/baseline.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ CREATE TABLE IF NOT EXISTS words (
157157
WoTranslation varchar(500) NOT NULL DEFAULT '*',
158158
WoRomanization varchar(100) DEFAULT NULL,
159159
WoSentence varchar(1000) DEFAULT NULL,
160+
WoNotes varchar(1000) DEFAULT NULL,
160161
WoWordCount tinyint(3) unsigned NOT NULL DEFAULT 0,
161162
WoCreated timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
162163
WoStatusChanged timestamp NOT NULL DEFAULT '1970-01-01 12:00:00',

0 commit comments

Comments
 (0)