From: Olaf Wintermann Date: Fri, 31 Jul 2026 19:14:18 +0000 (+0200) Subject: add note fixed_title X-Git-Url: https://uap-core.de/gitweb/?a=commitdiff_plain;h=c2515307fc968f80c61c75ae8641935f3bf11712;p=note.git add note fixed_title --- diff --git a/entity/src/note.rs b/entity/src/note.rs index 8df1f1a..c130f63 100644 --- a/entity/src/note.rs +++ b/entity/src/note.rs @@ -43,6 +43,8 @@ pub struct Model { pub lastmodified: DateTimeWithTimeZone, pub created: DateTimeWithTimeZone, + pub fixed_title: bool, + #[sea_orm(belongs_to, from = "collection_id", to = "collection_id")] pub repository: HasOne, @@ -70,6 +72,7 @@ impl Model { title: Default::default(), lastmodified: Default::default(), created: Default::default(), + fixed_title: false, version: 0 } } diff --git a/migration/src/m20260502_184134_create_settings.rs b/migration/src/m20260502_184134_create_settings.rs index d3c6cf8..f2d6785 100644 --- a/migration/src/m20260502_184134_create_settings.rs +++ b/migration/src/m20260502_184134_create_settings.rs @@ -76,6 +76,7 @@ impl MigrationTrait for Migration { .col(string("title")) .col(timestamp_with_time_zone("lastmodified")) .col(timestamp_with_time_zone("created")) + .col(boolean("fixed_title")) .col(big_integer("version")) .to_owned() ).await?;