Added versioning

Added a protocol StORMVersionable
This commit is contained in:
Brendan Seabrook 2016-10-18 14:58:56 -04:00
parent 54d3e15efb
commit 797f59f429
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
//
// StORMVersionable.swift
// PerfectArcade
//
// Created by Brendan Seabrook on 2016-10-18.
//
//
public protocol StORMVersionable {
static var version:String { get }
static var migrations:[String:((StORMRow) throws -> StORMRow)] { get }
static var createTable:String { get }
static var previousTypes:[StORMVersionable.Type] { get }
var versioningTableName:String { get }
func migrate() throws
func setupAndEnableVersioning() throws
}