Skip to content

Commit

Permalink
Idempotent schema and data migrations (#4253)
Browse files Browse the repository at this point in the history
* modify all migration scripts for idempotency
* Add readme
  • Loading branch information
wiggin77 authored Dec 16, 2022
1 parent 42c46ad commit 2a5c033
Show file tree
Hide file tree
Showing 31 changed files with 731 additions and 139 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ server-test-mini-sqlite: setup-go-work ## Run server tests using sqlite

server-test-mysql: export FOCALBOARD_UNIT_TESTING=1
server-test-mysql: export FOCALBOARD_STORE_TEST_DB_TYPE=mysql
server-test-mysql: export FOCALBOARD_STORE_TEST_DOCKER_PORT=44445
server-test-mysql: export FOCALBOARD_STORE_TEST_DOCKER_PORT=44446

server-test-mysql: setup-go-work ## Run server tests using mysql
@echo Starting docker container for mysql
Expand Down Expand Up @@ -174,7 +174,7 @@ server-test-mariadb: templates-archive ## Run server tests using mysql

server-test-postgres: export FOCALBOARD_UNIT_TESTING=1
server-test-postgres: export FOCALBOARD_STORE_TEST_DB_TYPE=postgres
server-test-postgres: export FOCALBOARD_STORE_TEST_DOCKER_PORT=44446
server-test-postgres: export FOCALBOARD_STORE_TEST_DOCKER_PORT=44447

server-test-postgres: setup-go-work ## Run server tests using postgres
@echo Starting docker container for postgres
Expand Down
2 changes: 1 addition & 1 deletion docker-testing/docker-compose-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ services:
retries: 3
tmpfs: /var/lib/mysql
ports:
- 44445:3306
- 44446:3306

start_dependencies:
image: mattermost/mattermost-wait-for-dep:latest
Expand Down
2 changes: 1 addition & 1 deletion docker-testing/docker-compose-postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
retries: 3
tmpfs: /var/lib/postgresql/data
ports:
- 44446:5432
- 44447:5432

start_dependencies:
image: mattermost/mattermost-wait-for-dep:latest
Expand Down
59 changes: 59 additions & 0 deletions server/services/permissions/mmpermissions/mocks/mockpluginapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2a5c033

Please sign in to comment.