mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-14 05:55:00 -04:00
Removed the migration plugins.
This commit is contained in:
parent
6d7864c415
commit
9c1213d3c4
3 changed files with 1 additions and 3 deletions
server
|
@ -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?
|
||||
|
|
|
@ -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?
|
||||
|
|
|
@ -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', ->
|
||||
|
|
Loading…
Add table
Reference in a new issue