Migrations

This commit is contained in:
Stefan Zermatten
2018-11-28 11:48:49 +02:00
parent c7fcb4de0c
commit dcc460d9e6
9 changed files with 84 additions and 83 deletions

View File

@@ -1,4 +1,5 @@
import SimpleSchema from 'simpl-schema';
import {makeChild} from "/imports/api/parenting.js";
DamageMultipliers = new Mongo.Collection("damageMultipliers");
@@ -31,8 +32,5 @@ Schemas.DamageMultiplier = new SimpleSchema({
DamageMultipliers.attachSchema(Schemas.DamageMultiplier);
DamageMultipliers.attachBehaviour("softRemovable");
// DamageMultipliers.attachBehaviour("softRemovable");
makeChild(DamageMultipliers, ["enabled"]); //children of lots of things
DamageMultipliers.allow(CHARACTER_SUBSCHEMA_ALLOW);
DamageMultipliers.deny(CHARACTER_SUBSCHEMA_DENY);