mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Handle a potentially `NULL` Bots.LastIconUpdate and `COALESCE` back to `0`. This column has no default, and while v5.20 should never write it as `NULL`, any pre-v5.20 server writing to the new schema will. As a result, this change ensures backwards compatibility. Fixes: https://mattermost.atlassian.net/browse/MM-21645 Fixes: https://mattermost.atlassian.net/browse/MM-21585
15 lines
306 B
Go
15 lines
306 B
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package sqlstore
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/mattermost/mattermost-server/v5/store/storetest"
|
|
)
|
|
|
|
func TestBotStore(t *testing.T) {
|
|
StoreTestWithSqlSupplier(t, storetest.TestBotStore)
|
|
}
|