Start writing migration

This commit is contained in:
Romulus Urakagi Tsai 2020-02-13 08:47:41 +00:00
parent 617fdaeb74
commit b34ed58289
3 changed files with 272 additions and 97 deletions

View file

@ -17,6 +17,7 @@ import Swimlanes from '../models/swimlanes';
import Triggers from '../models/triggers';
import UnsavedEdits from '../models/unsavedEdits';
import Users from '../models/users';
import CFSAttachments from './migrate-attachments';
// Anytime you change the schema of one of the collection in a non-backward
// compatible way you have to write a migration in this file using the following
@ -777,3 +778,8 @@ Migrations.add('fix-incorrect-dates', () => {
}),
);
});
Migrations.add('fix-incorrect-dates', () => {
cas = CFSAttachments.find();
console.log('cas', cas);
});