cloudfoundry-incubator/stratos

View on GitHub
src/jetstream/datastore/20190515133200_AuthEndpoint.go

Summary

Maintainability
A
0 mins
Test Coverage
package datastore

import (
    "database/sql"

    "bitbucket.org/liamstask/goose/lib/goose"
)

func init() {
    RegisterMigration(20190515133200, "AuthEndpoint", func(txn *sql.Tx, conf *goose.DBConf) error {

        addColumn := "ALTER TABLE console_config ADD auth_endpoint VARCHAR(255)"
        _, err := txn.Exec(addColumn)
        if err != nil {
            return err
        }

        return nil
    })
}