mirror of
https://github.com/xataio/pgroll.git
synced 2024-10-26 05:46:27 +03:00
7cef8b1213
Set `created_at` and `updated_at` explicitly when inserting inferred migrations into the migrations table. When two statements are run in a transaction, we need to explicitly insert `statement_timestamp()` into the `created_at` and `updated_at` fields rather than relying on the table default of `current_timestamp`. `current_timestamp` is the same for all statements in a transaction, which causes problems when ordering statements by `created_at`. Fixes #361 |
||
---|---|---|
.. | ||
errors.go | ||
state_test.go | ||
state.go | ||
status.go |