mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
README.md
This commit is contained in:
1 parent
77847d848c
commit
1338a12ac6
1 file changed
+1
-1
@@ -1188,7 +1188,7 @@ Yet any kind of schema change is still possible. The SQLite documentation explai
|
||||
migrator.registerMigrationWithoutForeignKeyChecks("AddNotNullCheckOnName") { db in
|
||||
try db.executeMultiStatement(
|
||||
"CREATE TABLE new_persons (id INTEGER PRIMARY KEY, name TEXT NOT NULL);" +
|
||||
"INSERT INTO new_persons SELECT id, name FROM persons;" +
|
||||
"INSERT INTO new_persons SELECT * FROM persons;" +
|
||||
"DROP TABLE persons;" +
|
||||
"ALTER TABLE new_persons RENAME TO persons;")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user