2018-03-17 19:59:35 +01:00
|
|
|
export const STATUSES_STORE = 'statuses-v4'
|
|
|
|
export const STATUS_TIMELINES_STORE = 'status_timelines-v4'
|
|
|
|
export const META_STORE = 'meta-v4'
|
|
|
|
export const ACCOUNTS_STORE = 'accounts-v4'
|
|
|
|
export const RELATIONSHIPS_STORE = 'relationships-v4'
|
|
|
|
export const NOTIFICATIONS_STORE = 'notifications-v4'
|
|
|
|
export const NOTIFICATION_TIMELINES_STORE = 'notification_timelines-v4'
|
|
|
|
export const PINNED_STATUSES_STORE = 'pinned_statuses-v4'
|
|
|
|
export const THREADS_STORE = 'threads-v4'
|
2018-02-14 04:34:37 +01:00
|
|
|
|
|
|
|
export const TIMESTAMP = '__pinafore_ts'
|
|
|
|
export const ACCOUNT_ID = '__pinafore_acct_id'
|
|
|
|
export const STATUS_ID = '__pinafore_status_id'
|
2018-02-27 07:22:56 +01:00
|
|
|
export const REBLOG_ID = '__pinafore_reblog_id'
|
2018-03-25 03:04:54 +02:00
|
|
|
export const USERNAME_LOWERCASE = '__pinafore_acct_lc'
|
2019-03-04 02:21:22 +01:00
|
|
|
|
|
|
|
export const DB_VERSION_INITIAL = 9
|
|
|
|
export const DB_VERSION_SEARCH_ACCOUNTS = 10
|
2019-03-06 05:25:10 +01:00
|
|
|
export const DB_VERSION_SNOWFLAKE_IDS = 12 // 11 skipped because of mistake deployed to dev.pinafore.social
|
2019-03-04 03:34:10 +01:00
|
|
|
|
|
|
|
// Using an object for these so that unit tests can change them
|
2019-03-06 05:25:10 +01:00
|
|
|
export const DB_VERSION_CURRENT = { version: 12 }
|
2019-03-04 03:34:10 +01:00
|
|
|
export const CURRENT_TIME = { now: () => Date.now() }
|