mirror of
https://github.com/mattermost/focalboard.git
synced 2025-01-11 18:13:52 +02:00
03f4717e96
* WIP * Added migrations * Updating store method * WIP * WIP * Updated DND * WIP * WIP * WIP * WIP * WIP * wip * WIP * Adding new DB tool * Used migration functions in new migrations * Unique constraint migration * Unique constraint migration * Added SQLITE migrations * Added SQLITE support in few more migrations * Added SQLITE support in few more migrations * WIP * Used old-fashioned way to add unique constraint * Using oldsqlite method * Using oldsqlite method * Fixed all store and app layer tests * fixed integration tests * test and lint fix * Updated migration for MySQL and Postgres on personal server * Types fix * sqlite fix * fix typo * misc cleanup * added new tests * added new tests * de-duping input for postgres * integration tests, rmeoved uneeded migration * Added some migration tests * Added some migration tests * Fixed a test * completed migration tests * completed migration tests * Removed leftover debug statements Co-authored-by: Mattermost Build <build@mattermost.com>
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)
|
|
})
|
|
}
|