Skip to content

Commit

Permalink
Fix migrations after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
NoComment1105 committed May 17, 2023
1 parent 0fc8be3 commit dc2b832
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ object Migrations : KordExKoinComponent {
20 -> ::v20
21 -> ::v21
22 -> ::v22
23 -> ::v23

else -> break
}(db.mongo)
Expand Down
14 changes: 14 additions & 0 deletions src/main/kotlin/org/quiltmc/community/database/migrations/v23.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/

package org.quiltmc.community.database.migrations

import org.litote.kmongo.coroutine.CoroutineDatabase
import org.quiltmc.community.database.collections.AmaConfigCollection

suspend fun v23(db: CoroutineDatabase) {
db.createCollection(AmaConfigCollection.name)
}

0 comments on commit dc2b832

Please sign in to comment.