mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-25 15:04:26 +01:00
12 lines
262 B
Go
12 lines
262 B
Go
package upgrades
|
|
|
|
import (
|
|
"database/sql"
|
|
)
|
|
|
|
func init() {
|
|
upgrades[20] = upgrade{"Add sent column for messages", func(tx *sql.Tx, ctx context) error {
|
|
_, err := tx.Exec(`ALTER TABLE message ADD COLUMN sent BOOLEAN NOT NULL DEFAULT true`)
|
|
return err
|
|
}}
|
|
}
|