Skip to content

Commit

Permalink
conference notes->description
Browse files Browse the repository at this point in the history
  • Loading branch information
paolini committed Oct 29, 2023
1 parent adcb976 commit 987d08a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions server/migrations.js
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,12 @@ const migrations = {
console.log(`invalid tags:`, invalid_tags.join(', '))
return true
},

D20231029_rename_conference_description_1: async function(db) {
const seminars = db.collection('eventconferences')
await seminars.updateMany({}, { $rename: { notes: 'description' } })
return true
},
}

async function migrate(db, options) {
Expand Down
2 changes: 1 addition & 1 deletion server/models/EventConference.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const eventConferenceSchema = new Schema({
oldUrl: { type: String, label: 'URL vecchio', widget: 'url' },
conferenceRoom: { type: ObjectId, label: 'Aula', ref: 'ConferenceRoom', required: true },
grants: [{type: ObjectId, label: 'grants', ref: 'Grant'}],
notes,
description: { type: String, label: 'Descrizione', widget: 'text'},
oldNotes: { type: String, label: 'note vecchie', widget: 'text'},

createdBy,
Expand Down

0 comments on commit 987d08a

Please sign in to comment.