a cache for slack profile pictures and emojis

docs: update README with migration system details

dunkirk.sh 6f1ed5c1 72c09665

verified
Changed files
+14 -1
+14 -1
README.md
··· 164 164 // Then add to src/migrations/index.ts 165 165 import { myNewMigration } from "./myNewMigration"; 166 166 167 - export const migrations: Migration[] = [ 167 + export const migrations = [ 168 168 endpointGroupingMigration, 169 169 myNewMigration, 170 170 // Add new migrations here 171 171 ]; 172 + 173 + // IMPORTANT: Also add to src/cache.ts runMigrations method 174 + private async runMigrations() { 175 + try { 176 + const migrations = [ 177 + endpointGroupingMigration, 178 + myNewMigration // Add here too to avoid circular dependencies 179 + ]; 180 + // ... 181 + } 182 + } 172 183 ``` 173 184 174 185 Remember to update the version in `package.json` when adding new migrations. 186 + 187 + Note: Migrations must be defined in both `index.ts` and `cache.ts` to avoid circular dependencies in the import structure. 175 188 176 189 <p align="center"> 177 190 <img src="https://raw.githubusercontent.com/taciturnaxolotl/carriage/master/.github/images/line-break.svg" />