chore: Remove all usage of collection.type (#1445)

* chore: Remove all usage of collection.type

* migration: Remove type column
This commit is contained in:
Tom Moor
2020-08-12 10:49:02 -07:00
committed by GitHub
parent 810dc5a061
commit d055021ad4
11 changed files with 20 additions and 30 deletions

View File

@@ -23,12 +23,6 @@ const Collection = sequelize.define(
color: DataTypes.STRING,
private: DataTypes.BOOLEAN,
maintainerApprovalRequired: DataTypes.BOOLEAN,
type: {
type: DataTypes.STRING,
validate: { isIn: [["atlas", "journal"]] },
},
/* type: atlas */
documentStructure: DataTypes.JSONB,
},
{