]> uap-core.de Git - note.git/commitdiff
add note fixed_title
authorOlaf Wintermann <olaf.wintermann@gmail.com>
Fri, 31 Jul 2026 19:14:18 +0000 (21:14 +0200)
committerOlaf Wintermann <olaf.wintermann@gmail.com>
Fri, 31 Jul 2026 19:14:18 +0000 (21:14 +0200)
entity/src/note.rs
migration/src/m20260502_184134_create_settings.rs

index 8df1f1ac69dff4bbaabdbda3e32d703d530a0528..c130f63b9589df77b9e8beb7caf1240fa5cf1a74 100644 (file)
@@ -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<super::collection::Entity>,
 
@@ -70,6 +72,7 @@ impl Model {
             title: Default::default(),
             lastmodified: Default::default(),
             created: Default::default(),
+            fixed_title: false,
             version: 0
         }
     }
index d3c6cf80469f9b025851e73a4cb8ec76b4c2cbd0..f2d678541d172bfb1acc797328da0c14c36fabee 100644 (file)
@@ -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?;