Possibly significantly improve how portals are created and synced
This commit is contained in:
15
database/upgrades/2019-05-21-message-timestamp-column.go
Normal file
15
database/upgrades/2019-05-21-message-timestamp-column.go
Normal file
@ -0,0 +1,15 @@
|
||||
package upgrades
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
)
|
||||
|
||||
func init() {
|
||||
upgrades[2] = upgrade{"Add timestamp column to messages", func(dialect Dialect, tx *sql.Tx) error {
|
||||
_, err := tx.Exec("ALTER TABLE message ADD COLUMN timestamp BIGINT NOT NULL DEFAULT 0")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}}
|
||||
}
|
Reference in New Issue
Block a user