Skip to content

Commit d492c63

Browse files
committed
add schema upgrade
1 parent bfc47df commit d492c63

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Sources/LocalAuthentication/Schema/InitializeSchema.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ public func initializeSchema(_ fname: String = "./config/ApplicationConfiguratio
5858
let a = Account()
5959
try? a.setup()
6060

61+
// Account migrations:
62+
// 1.3.1->1.4
63+
let _ = try? a.sql("ALTER TABLE account ADD COLUMN \"source\" text;", params: [])
64+
let _ = try? a.sql("ALTER TABLE account ADD COLUMN \"remoteid\" text;", params: [])
65+
6166
// Application
6267
let app = Application()
6368
try? app.setup()

0 commit comments

Comments
 (0)