mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
README.md
This commit is contained in:
1 parent
729ea4c26c
commit
d358518ab5
1 file changed
+4
@@ -1125,6 +1125,10 @@ migrator.registerMigration("AddAgeToPersons") { db in
|
||||
try db.execute("ALTER TABLE persons ADD COLUMN age INT")
|
||||
}
|
||||
|
||||
migrator.registerMigration("AddYearToBooks") { db in
|
||||
try db.execute("ALTER TABLE books ADD COLUMN year INT")
|
||||
}
|
||||
|
||||
// (Future migrations here)
|
||||
|
||||
try migrator.migrate(dbQueue)
|
||||
|
||||
Reference in new issue
Block a user