2022-05-12-history-sync-message-add-added-timestamp.go 355 B

12345678910111213141516
  1. package upgrades
  2. import (
  3. "database/sql"
  4. )
  5. func init() {
  6. upgrades[45] = upgrade{"Add inserted time to history sync message", func(tx *sql.Tx, ctx context) error {
  7. // Add the inserted time TIMESTAMP column to history_sync_message
  8. _, err := tx.Exec(`
  9. ALTER TABLE history_sync_message
  10. ADD COLUMN inserted_time TIMESTAMP
  11. `)
  12. return err
  13. }}
  14. }