【问题标题】:How to conduct db schema migration in sorm?如何在 sorm 中进行 db 架构迁移?
【发布时间】:2013-08-25 21:39:55
【问题描述】:

假设我想从

更新数据库列
case class Link(url:String, auther: String)

case class Link(url:String, auther: String, created: DateTime)

但是,我不想删除表并使用DropAllCreate 重新创建它,因为我想保留我的数据。

我们应该如何在 SORM 中做到这一点?还是唯一的方法是使用 SQL 进行手动迁移?

【问题讨论】:

    标签: migration schema sorm


    【解决方案1】:

    是的。手动修改是唯一的方法。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-11-14
      • 2021-08-23
      • 1970-01-01
      • 1970-01-01
      • 2017-09-08
      • 2019-02-16
      • 2018-08-14
      • 1970-01-01
      相关资源
      最近更新 更多