mirror of
https://github.com/mattermost/focalboard.git
synced 2025-01-23 18:34:02 +02:00
28 lines
620 B
Go
28 lines
620 B
Go
|
package migrationstests
|
||
|
|
||
|
import "testing"
|
||
|
|
||
|
func Test35AddHIddenColumnToCategoryBoards(t *testing.T) {
|
||
|
t.Run("base case - column doesn't already exist", func(t *testing.T) {
|
||
|
th, tearDown := SetupTestHelper(t)
|
||
|
defer tearDown()
|
||
|
th.f.MigrateToStep(35)
|
||
|
})
|
||
|
|
||
|
t.Run("column already exist", func(t *testing.T) {
|
||
|
th, tearDown := SetupTestHelper(t)
|
||
|
defer tearDown()
|
||
|
|
||
|
// We don't support adding column in idempotent manner
|
||
|
// for SQLite, so no need to check for it.
|
||
|
if th.IsSQLite() {
|
||
|
return
|
||
|
}
|
||
|
|
||
|
th.f.MigrateToStep(34).
|
||
|
ExecFile("./fixtures/test35_add_hidden_column.sql")
|
||
|
|
||
|
th.f.MigrateToStep(35)
|
||
|
})
|
||
|
}
|