Skip to content

Commit

Permalink
feat: Add migrateName property to StoreFileStat
Browse files Browse the repository at this point in the history
This refactor adds a new property, migrateName, to the StoreFileStat type in the main.ts file. The migrateName property is used to specify the name of the migration process for migrating the store file to a new schema version. This change enhances the flexibility and extensibility of the StoreFileStat type, allowing for easier management of schema migrations in the database.
  • Loading branch information
alimd committed Sep 2, 2024
1 parent 25ace2a commit f5b4f39
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/types/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ export type StoreFileStat = StoreFileId & {
*/
readonly changeDebounce?: number;

/**
* The name of the migration process.
* This is used to migrate the store file to a new schema version.
*/
readonly migrateName?: string;

/**
* The time-to-live (TTL) of the store file in memory.
*/
Expand Down

0 comments on commit f5b4f39

Please sign in to comment.