aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/ledger/database/Upgrades.kt
blob: e83abe7f69a717909eec430154a66e2ca931932f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package moe.nea.ledger.database

class Upgrades {
	val upgrades = mutableListOf<DBUpgrade>()

	fun add(upgrade: DBUpgrade) = upgrades.add(upgrade)

	init {
		add(DBUpgrade.createTable(
			0, DBLogEntry,
			DBLogEntry.type, DBLogEntry.playerId, DBLogEntry.profileId,
			DBLogEntry.transactionId))
		add(DBUpgrade.createTable(
			0, DBItemEntry,
			DBItemEntry.itemId, DBItemEntry.size, DBItemEntry.mode, DBItemEntry.transactionId
		))
	}


}