Merge pull request #3 from PastuDan/master

Fix for postgres schemas
This commit is contained in:
pidong 2020-12-24 11:59:12 +08:00 committed by GitHub
commit 91a76c7e20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ import (
func init() { func init() {
upgrades[17] = upgrade{"Add id column to messages", func(tx *sql.Tx, ctx context) error { upgrades[17] = upgrade{"Add id column to messages", func(tx *sql.Tx, ctx context) error {
_, err := tx.Exec(`ALTER TABLE message ADD COLUMN id CHAR(13) DEFAULT ""`) _, err := tx.Exec(`ALTER TABLE message ADD COLUMN id CHAR(13) DEFAULT ''`)
if err != nil { if err != nil {
return err return err
} }