diff --git a/README.md b/README.md new file mode 100644 index 0000000..a5322fc --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +# firemorph + +Migration tool for Firestore + +## Gotchas + +- 500 Limit https://firebase.google.com/docs/firestore/manage-data/transactions + +## Local testing + +- FIRESTORE_EMULATOR_HOST="localhost:8080" +- GCLOUD_PROJECT="lovoo-dna-2" + +## Migrations + +## CLI diff --git a/src/index.ts b/src/index.ts index 9a27384..8689dc2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -9,7 +9,7 @@ import ms from 'ms' const App = admin.initializeApp() const DB = admin.firestore() const Timestamp = admin.firestore.Timestamp -const MigrationCollection = DB.collection('migrations') +const MigrationCollection = DB.collection('_migrations') export type MigrationFN = (db: FirebaseFirestore.Firestore, firestore: typeof admin.firestore) => Promise export type MigrationFile = {