0

I want to update a time stamp similar to MySQLs "ON UPDATE CURRENT_TIMESTAMP".

Is there anyway to do this when declaring a table in Exposed?

Adam
  • 25,966
  • 23
  • 76
  • 87
  • No, this syntax is not supported yet. – Tapac Sep 24 '18 at 15:41
  • I also notice that Postgres does not have that feature natively, so I'm not sure it can be done in a lowest common denominator sort of way? – Adam Sep 24 '18 at 17:01
  • 2
    You can try to use `clientDefault{ DateTime.now() }` on non-null column and skip that column in table updates. Exposed should fill that value on every update/insert. – Tapac Sep 26 '18 at 07:40

0 Answers0