Work on better sorting for the IDAA BB posts. Using generated tmp field. Date formats standardized.
This commit is contained in:
@@ -50,6 +50,10 @@ export interface Post {
|
||||
created_on: Date;
|
||||
updated_on?: null|Date;
|
||||
|
||||
// Generated fields for sorting locally only
|
||||
tmp_sort_1?: null|string;
|
||||
tmp_sort_2?: null|string;
|
||||
|
||||
// Additional fields for convenience (database views)
|
||||
post_comment_count?: number;
|
||||
}
|
||||
@@ -116,6 +120,7 @@ export class MySubClassedDexie extends Dexie {
|
||||
post_id,
|
||||
title,
|
||||
full_name, email,
|
||||
tmp_sort_1, tmp_sort_2,
|
||||
enable, hide, priority, sort, group, notes, created_on, updated_on, [updated_on+created_on]`,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user