Fix notes content migration key (#1539)

This commit is contained in:
Leendert de Borst
2026-01-31 00:34:41 +01:00
committed by Leendert de Borst
parent 728e699cc2
commit c2177d0c8d
18 changed files with 28 additions and 28 deletions

View File

File diff suppressed because one or more lines are too long

View File

File diff suppressed because one or more lines are too long

View File

@@ -1068,7 +1068,7 @@ CREATE INDEX "IX_Tags_Name" ON "Tags" ("Name");
SUBSTR(hex(randomblob(6)), 1, 12)) AS Id,
c.Id AS ItemId,
NULL AS FieldDefinitionId,
'login.notes' AS FieldKey,
'notes.content' AS FieldKey,
c.Notes AS Value,
0 AS Weight,
c.UpdatedAt AS CreatedAt,
@@ -2278,7 +2278,7 @@ CREATE INDEX "IX_Tags_Name" ON "Tags" ("Name");
SUBSTR(hex(randomblob(6)), 1, 12)) AS Id,
c.Id AS ItemId,
NULL AS FieldDefinitionId,
'login.notes' AS FieldKey,
'notes.content' AS FieldKey,
c.Notes AS Value,
0 AS Weight,
c.UpdatedAt AS CreatedAt,

View File

@@ -1036,7 +1036,7 @@ CREATE INDEX "IX_Tags_Name" ON "Tags" ("Name");
SUBSTR(hex(randomblob(6)), 1, 12)) AS Id,
c.Id AS ItemId,
NULL AS FieldDefinitionId,
'login.notes' AS FieldKey,
'notes.content' AS FieldKey,
c.Notes AS Value,
0 AS Weight,
c.UpdatedAt AS CreatedAt,
@@ -2246,7 +2246,7 @@ CREATE INDEX "IX_Tags_Name" ON "Tags" ("Name");
SUBSTR(hex(randomblob(6)), 1, 12)) AS Id,
c.Id AS ItemId,
NULL AS FieldDefinitionId,
'login.notes' AS FieldKey,
'notes.content' AS FieldKey,
c.Notes AS Value,
0 AS Weight,
c.UpdatedAt AS CreatedAt,

View File

@@ -1045,7 +1045,7 @@ CREATE INDEX "IX_Tags_Name" ON "Tags" ("Name");
SUBSTR(hex(randomblob(6)), 1, 12)) AS Id,
c.Id AS ItemId,
NULL AS FieldDefinitionId,
'login.notes' AS FieldKey,
'notes.content' AS FieldKey,
c.Notes AS Value,
0 AS Weight,
c.UpdatedAt AS CreatedAt,
@@ -2281,7 +2281,7 @@ CREATE INDEX "IX_Tags_Name" ON "Tags" ("Name");
SUBSTR(hex(randomblob(6)), 1, 12)) AS Id,
c.Id AS ItemId,
NULL AS FieldDefinitionId,
'login.notes' AS FieldKey,
'notes.content' AS FieldKey,
c.Notes AS Value,
0 AS Weight,
c.UpdatedAt AS CreatedAt,

View File

@@ -1041,7 +1041,7 @@ public struct VaultSql {
SUBSTR(hex(randomblob(6)), 1, 12)) AS Id,
c.Id AS ItemId,
NULL AS FieldDefinitionId,
'login.notes' AS FieldKey,
'notes.content' AS FieldKey,
c.Notes AS Value,
0 AS Weight,
c.UpdatedAt AS CreatedAt,
@@ -2275,7 +2275,7 @@ public struct VaultSql {
SUBSTR(hex(randomblob(6)), 1, 12)) AS Id,
c.Id AS ItemId,
NULL AS FieldDefinitionId,
'login.notes' AS FieldKey,
'notes.content' AS FieldKey,
c.Notes AS Value,
0 AS Weight,
c.UpdatedAt AS CreatedAt,

View File

File diff suppressed because one or more lines are too long

View File

File diff suppressed because one or more lines are too long

View File

@@ -1068,7 +1068,7 @@ CREATE INDEX "IX_Tags_Name" ON "Tags" ("Name");
SUBSTR(hex(randomblob(6)), 1, 12)) AS Id,
c.Id AS ItemId,
NULL AS FieldDefinitionId,
'login.notes' AS FieldKey,
'notes.content' AS FieldKey,
c.Notes AS Value,
0 AS Weight,
c.UpdatedAt AS CreatedAt,
@@ -2278,7 +2278,7 @@ CREATE INDEX "IX_Tags_Name" ON "Tags" ("Name");
SUBSTR(hex(randomblob(6)), 1, 12)) AS Id,
c.Id AS ItemId,
NULL AS FieldDefinitionId,
'login.notes' AS FieldKey,
'notes.content' AS FieldKey,
c.Notes AS Value,
0 AS Weight,
c.UpdatedAt AS CreatedAt,

View File

@@ -1036,7 +1036,7 @@ CREATE INDEX "IX_Tags_Name" ON "Tags" ("Name");
SUBSTR(hex(randomblob(6)), 1, 12)) AS Id,
c.Id AS ItemId,
NULL AS FieldDefinitionId,
'login.notes' AS FieldKey,
'notes.content' AS FieldKey,
c.Notes AS Value,
0 AS Weight,
c.UpdatedAt AS CreatedAt,
@@ -2246,7 +2246,7 @@ CREATE INDEX "IX_Tags_Name" ON "Tags" ("Name");
SUBSTR(hex(randomblob(6)), 1, 12)) AS Id,
c.Id AS ItemId,
NULL AS FieldDefinitionId,
'login.notes' AS FieldKey,
'notes.content' AS FieldKey,
c.Notes AS Value,
0 AS Weight,
c.UpdatedAt AS CreatedAt,

View File

File diff suppressed because one or more lines are too long

View File

File diff suppressed because one or more lines are too long

View File

@@ -1068,7 +1068,7 @@ CREATE INDEX "IX_Tags_Name" ON "Tags" ("Name");
SUBSTR(hex(randomblob(6)), 1, 12)) AS Id,
c.Id AS ItemId,
NULL AS FieldDefinitionId,
'login.notes' AS FieldKey,
'notes.content' AS FieldKey,
c.Notes AS Value,
0 AS Weight,
c.UpdatedAt AS CreatedAt,
@@ -2278,7 +2278,7 @@ CREATE INDEX "IX_Tags_Name" ON "Tags" ("Name");
SUBSTR(hex(randomblob(6)), 1, 12)) AS Id,
c.Id AS ItemId,
NULL AS FieldDefinitionId,
'login.notes' AS FieldKey,
'notes.content' AS FieldKey,
c.Notes AS Value,
0 AS Weight,
c.UpdatedAt AS CreatedAt,

View File

@@ -1036,7 +1036,7 @@ CREATE INDEX "IX_Tags_Name" ON "Tags" ("Name");
SUBSTR(hex(randomblob(6)), 1, 12)) AS Id,
c.Id AS ItemId,
NULL AS FieldDefinitionId,
'login.notes' AS FieldKey,
'notes.content' AS FieldKey,
c.Notes AS Value,
0 AS Weight,
c.UpdatedAt AS CreatedAt,
@@ -2246,7 +2246,7 @@ CREATE INDEX "IX_Tags_Name" ON "Tags" ("Name");
SUBSTR(hex(randomblob(6)), 1, 12)) AS Id,
c.Id AS ItemId,
NULL AS FieldDefinitionId,
'login.notes' AS FieldKey,
'notes.content' AS FieldKey,
c.Notes AS Value,
0 AS Weight,
c.UpdatedAt AS CreatedAt,

View File

@@ -572,7 +572,7 @@ namespace AliasClientDb.Migrations
WHERE c.Username IS NOT NULL AND c.Username != '';
");
// Migrate login.notes field (system field using FieldKey)
// Migrate notes.content field (system field using FieldKey)
// Note: GUID format must be uppercase with dashes (8-4-4-4-12) to match C# Guid.Parse expectations
migrationBuilder.Sql(@"
INSERT INTO FieldValues (Id, ItemId, FieldDefinitionId, FieldKey, Value, Weight, CreatedAt, UpdatedAt, IsDeleted)
@@ -584,7 +584,7 @@ namespace AliasClientDb.Migrations
SUBSTR(hex(randomblob(6)), 1, 12)) AS Id,
c.Id AS ItemId,
NULL AS FieldDefinitionId,
'login.notes' AS FieldKey,
'notes.content' AS FieldKey,
c.Notes AS Value,
0 AS Weight,
c.UpdatedAt AS CreatedAt,

View File

@@ -1030,7 +1030,7 @@ CREATE INDEX "IX_Tags_Name" ON "Tags" ("Name");
SUBSTR(hex(randomblob(6)), 1, 12)) AS Id,
c.Id AS ItemId,
NULL AS FieldDefinitionId,
'login.notes' AS FieldKey,
'notes.content' AS FieldKey,
c.Notes AS Value,
0 AS Weight,
c.UpdatedAt AS CreatedAt,

View File

@@ -356,7 +356,7 @@ CREATE INDEX "IX_Tags_Name" ON "Tags" ("Name");
SUBSTR(hex(randomblob(6)), 1, 12)) AS Id,
c.Id AS ItemId,
NULL AS FieldDefinitionId,
'login.notes' AS FieldKey,
'notes.content' AS FieldKey,
c.Notes AS Value,
0 AS Weight,
c.UpdatedAt AS CreatedAt,

View File

@@ -1037,7 +1037,7 @@ CREATE INDEX "IX_Tags_Name" ON "Tags" ("Name");
SUBSTR(hex(randomblob(6)), 1, 12)) AS Id,
c.Id AS ItemId,
NULL AS FieldDefinitionId,
'login.notes' AS FieldKey,
'notes.content' AS FieldKey,
c.Notes AS Value,
0 AS Weight,
c.UpdatedAt AS CreatedAt,
@@ -2251,7 +2251,7 @@ CREATE INDEX "IX_Tags_Name" ON "Tags" ("Name");
SUBSTR(hex(randomblob(6)), 1, 12)) AS Id,
c.Id AS ItemId,
NULL AS FieldDefinitionId,
'login.notes' AS FieldKey,
'notes.content' AS FieldKey,
c.Notes AS Value,
0 AS Weight,
c.UpdatedAt AS CreatedAt,