forked from MirrorHub/mautrix-whatsapp
1d70cbff48
* the dispatch time is going to be what the completed time used to be * the time end column was always nil, so I got rid of it
16 lines
308 B
Go
16 lines
308 B
Go
package upgrades
|
|
|
|
import (
|
|
"database/sql"
|
|
)
|
|
|
|
func init() {
|
|
upgrades[45] = upgrade{"Add dispatch time to backfill queue", func(tx *sql.Tx, ctx context) error {
|
|
// First, add dispatch_time TIMESTAMP column
|
|
_, err := tx.Exec(`
|
|
ALTER TABLE backfill_queue
|
|
DROP COLUMN time_end
|
|
`)
|
|
return err
|
|
}}
|
|
}
|