1
let tango_id = Expression<Int64>("tango_id")
    let e_score = Expression<Double>("e_score")
    let interval = Expression<Double>("interval")
    let next_revision_date = Expression<Date>("next_revision_date")
    let bookmark = Expression<Bool>("bookmark")
    let bookmark_date = Expression<Date>("bookmark_date")
    let learnt = Expression<Bool>("learnt")
    
    do {
      try userdb.run(userTable.create { t in
        t.column(tango_id, primaryKey: true)
        t.column(e_score)
        t.column(interval)
        t.column(next_revision_date)
        t.column(bookmark)
        t.column(learnt)
      })
      
      
    }
      
    catch let error {
      print("creation failed: \(error)")
    }

I want to add a column for bookmark_date which is defined as Expression

alamodey
  • 14,320
  • 24
  • 86
  • 112
  • Do you still want help with this? What have you tried that didn’t work? Update your question with any further details you can provide. – Mozahler Mar 16 '22 at 17:26

0 Answers0