Commit cfea72c5 authored by Marlène SIMONDANT's avatar Marlène SIMONDANT
Browse files

feat(structures): add MaisonFranceService to structure types

parent 6b4b5912
import { Db } from 'mongodb';
import { getDb } from '../migrations-utils/db';
export const up = async () => {
const db: Db = await getDb();
await db.collection('structuretype').updateOne({ name: 'Publique' }, { $push: { values: 'MaisonFranceService' } });
console.log('Updated : MaisonFranceService added to "Publique" document in "StructureType" collection');
};
export const down = async () => {
const db: Db = await getDb();
await db.collection('structuretype').updateOne({ name: 'Publique' }, { $pull: { values: 'MaisonFranceService' } });
console.log('Downgraded : MaisonFranceService removed from "Publique" document in "StructureType" collection');
};
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment