sql-migrate icon indicating copy to clipboard operation
sql-migrate copied to clipboard

Support for cratedb ???

Open aman00323 opened this issue 2 years ago • 3 comments

  • Kudos for this awesome package, can we have support for cratedb (https://crate.io/)

  • I have tested if it works, but it fails while scanning the table because of time conversion.

  • Here is the error which I have gotten.

Error: sql: Scan error on column index 1, name "applied_at": unsupported Scan, storing driver.Value type json.Number into type *time.Time

aman00323 avatar Oct 29 '21 05:10 aman00323

@rubenv Can you look into this?

aman00323 avatar Nov 10 '21 05:11 aman00323

@aman00323 sql-migrate depends on gorp for database support, so any incompatibility with cratedb should probably be fixed there.

rubenv avatar Nov 10 '21 08:11 rubenv

Thanks, @rubenv they have staled PR for the crate.

https://github.com/go-gorp/gorp/pull/342

aman00323 avatar Nov 11 '21 05:11 aman00323