Removed the migration plugins.

This commit is contained in:
Scott Erickson 2014-06-10 15:03:29 -07:00
parent 6d7864c415
commit 9c1213d3c4
3 changed files with 1 additions and 3 deletions
server

View file

@ -12,7 +12,6 @@ LevelComponentSchema.plugin plugins.PermissionsPlugin
LevelComponentSchema.plugin plugins.VersionedPlugin
LevelComponentSchema.plugin plugins.SearchablePlugin, {searchable: ['name', 'description', 'system']}
LevelComponentSchema.plugin plugins.PatchablePlugin
LevelComponentSchema.plugin plugins.MigrationPlugin, {'language': 'codeLanguage'}
LevelComponentSchema.pre 'init', (next) ->
return next() unless jsonschema.properties?

View file

@ -11,7 +11,6 @@ LevelSystemSchema.plugin(plugins.PermissionsPlugin)
LevelSystemSchema.plugin(plugins.VersionedPlugin)
LevelSystemSchema.plugin(plugins.SearchablePlugin, {searchable: ['name', 'description']})
LevelSystemSchema.plugin(plugins.PatchablePlugin)
LevelSystemSchema.plugin plugins.MigrationPlugin, {'language': 'codeLanguage'}
LevelSystemSchema.pre 'init', (next) ->
return next() unless jsonschema.properties?

View file

@ -9,7 +9,7 @@ module.exports.MigrationPlugin = (schema, migrations) ->
# 1. Change the schema and the client/server logic to use the new name
# 2. Add this plugin to the target models, passing in a dictionary of old/new names.
# 3. Check that tests still run, deploy to production.
# 4. Run db.<collection>.update({}, { $rename: {'<oldname>':'<newname>'} }) on the server
# 4. Run db.<collection>.update({}, { $rename: {'<oldname>':'<newname>'} }, { multi: true }) on the server
# 5. Remove the names you added to the migrations dictionaries for the next deploy
schema.post 'init', ->