+37
README.md
+37
README.md
···+The app includes a migration system to handle database schema and data changes between versions. Migrations are automatically run when the app starts.+Previous versions are tracked in a `migrations` table in the database, which records each applied migration with its version number and timestamp.<img src="https://raw.githubusercontent.com/taciturnaxolotl/carriage/master/.github/images/line-break.svg" />
+1
-1
package.json
+1
-1
package.json
+25
src/cache.ts
+25
src/cache.ts
···* @fileoverview This file contains the Cache class for storing user and emoji data with automatic expiration. To use the module in your project, import the default export and create a new instance of the Cache class. The class provides methods for inserting and retrieving user and emoji data from the cache. The cache automatically purges expired items every hour.······+console.log(`Applied ${result.migrationsApplied} migrations. Latest version: ${result.lastAppliedVersion}`);
+66
src/migrations/endpointGroupingMigration.ts
+66
src/migrations/endpointGroupingMigration.ts
···
+12
src/migrations/index.ts
+12
src/migrations/index.ts
···
+225
src/migrations/migrationManager.ts
+225
src/migrations/migrationManager.ts
···+console.log(`Migration ${migration.version} is older than last applied (${lastAppliedVersion}), skipping`);
+11
src/migrations/types.ts
+11
src/migrations/types.ts