mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-14 17:33:48 +01:00
16 lines
355 B
Go
16 lines
355 B
Go
package upgrades
|
|
|
|
import (
|
|
"database/sql"
|
|
)
|
|
|
|
func init() {
|
|
upgrades[45] = upgrade{"Add inserted time to history sync message", func(tx *sql.Tx, ctx context) error {
|
|
// Add the inserted time TIMESTAMP column to history_sync_message
|
|
_, err := tx.Exec(`
|
|
ALTER TABLE history_sync_message
|
|
ADD COLUMN inserted_time TIMESTAMP
|
|
`)
|
|
return err
|
|
}}
|
|
}
|