1
我今天嘗試過Core Data手動遷移,但是我遇到了問題,Book實體中的許多列都向前移動了一列。Core Data手動遷移問題(屬性不匹配)
這裏是我的映射模型: mapping model http://i57.tinypic.com/2rpbvgx.png
和遷移後的數據: migrated data http://i59.tinypic.com/ouuk95.png
我今天嘗試過Core Data手動遷移,但是我遇到了問題,Book實體中的許多列都向前移動了一列。Core Data手動遷移問題(屬性不匹配)
這裏是我的映射模型: mapping model http://i57.tinypic.com/2rpbvgx.png
和遷移後的數據: migrated data http://i59.tinypic.com/ouuk95.png
解決!因爲sqlite journal_model是WAL,我只是在移動sqlite文件。
你好,請你詳細說明一下嗎?我有同樣的問題,但我仍然無能爲力。我怎樣才能改變模型? – Apollo
數據庫目錄中有三個文件:xxx.sqlite,xxx.sqlite-shm和xxx.sqlite-wal,您還應該將xxx.sqlite-shm和xxx.sqlite-wal –