Rails migrate sqlite3 into postgresql
reference
尝试了pgloader, 遇到的问题很多。一筹莫展了半个下午。
尝试sequel,意外地顺利。1sequel -C sqlite://db/production.sqlite3 postgres://user@localhost/db
得到的教训是从刚一开始就应该使用postgresql,其次sqlite3中并不严格检查表项的类型,
导致以前定义成timestamps的表项直接被当string存储下来,给时间的转换统一带来了不少麻烦。
将API传来的关于时间的string转换成Swift的Date
|
|