We remove any remaining migrations from the upgrade.go file

```release-note
NONE
```
Этот коммит содержится в:
Agniva De Sarker
2022-06-02 22:53:12 +05:30
коммит произвёл GitHub
родитель c92cbb606a
Коммит ec0284b459
15 изменённых файлов: 185 добавлений и 985 удалений

Просмотреть файл

@@ -64,6 +64,8 @@ const (
migrationsDirectionDown migrationDirection = "down"
replicaLagPrefix = "replica-lag"
RemoteClusterSiteURLUniqueIndex = "remote_clusters_site_url_unique"
)
var tablesToCheckForCollation = []string{"incomingwebhooks", "preferences", "users", "uploadsessions", "channels", "publicchannels"}
@@ -205,11 +207,6 @@ func New(settings model.SqlSettings, metrics einterfaces.MetricsInterface) *SqlS
store.stores.group = newSqlGroupStore(store)
store.stores.productNotices = newSqlProductNoticesStore(store)
err = upgradeDatabase(store, model.CurrentVersion)
if err != nil {
mlog.Fatal("Failed to upgrade database.", mlog.Err(err))
}
store.stores.preference.(*SqlPreferenceStore).deleteUnusedFeatures()
return store
@@ -344,12 +341,6 @@ func (ss *SqlStore) IsBinaryParamEnabled() bool {
return ss.isBinaryParam
}
func (ss *SqlStore) getCurrentSchemaVersion() (string, error) {
var version string
err := ss.GetMasterX().Get(&version, "SELECT Value FROM Systems WHERE Name='Version'")
return version, err
}
// GetDbVersion returns the version of the database being used.
// If numerical is set to true, it attempts to return a numerical version string
// that can be parsed by callers.