From a3ec7f8c420644feceabc7719776e175805d19a1 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Thu, 5 Feb 2026 19:57:22 -0500 Subject: [PATCH] fix(idaa): synchronize Dexie schema with renamed post_comment table - Renamed 'comment' table to 'post_comment' in db_posts.ts. - Bumped Dexie database version to 2. - Resolved InvalidTableError: Table post_comment does not exist. - Standardized ID mapping for local storage consistency. --- src/lib/ae_posts/db_posts.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/ae_posts/db_posts.ts b/src/lib/ae_posts/db_posts.ts index 8fa76289..f25679eb 100644 --- a/src/lib/ae_posts/db_posts.ts +++ b/src/lib/ae_posts/db_posts.ts @@ -116,15 +116,15 @@ export interface Post_Comment { // Additional fields for convenience (database views) } -// Updated 2024-09-25 +// Updated 2026-02-05 export class MySubClassedDexie extends Dexie { // We just tell the typing system this is the case post!: Table; - comment!: Table; + post_comment!: Table; constructor() { super('ae_posts_db'); - this.version(1).stores({ + this.version(2).stores({ post: ` id, post_id, account_id, @@ -136,7 +136,7 @@ export class MySubClassedDexie extends Dexie { tmp_sort_1, tmp_sort_2, enable, hide, priority, sort, group, notes, created_on, updated_on, [updated_on+created_on], [created_on+updated_on]`, - comment: ` + post_comment: ` id, post_comment_id, post_id, name,