mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Create basic make commands for configuring golang-migrate (#16938)
* Create basic make commands for configuring golang-migrate * Showcase full flow with new migrations * Apply PR suggestions * Migrate over team members * Update mocks * Fix specs * Move columns that added after table creation onto separate stmts * Put back gorp table definitions * Fix issues with golang-migrate that not tracks underlying db driver * Help prompt after new migration and consistent checksum for bindata * Put gorp mapping back * Apply PR suggestiong * Close migrations after they run * Add migration file to bindata check * Updates needed * Reset store_test * Add copyright * Apply PR suggestions * Fix new circleci check * Put back upgrade step for backwards comp * Add store test to test migration directions * Apply PR suggestions * Add go-bindata to tools * Apply PR suggestios Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
This commit is contained in:
@@ -910,9 +910,9 @@ CREATE TABLE `Teams` (
|
||||
`CompanyName` varchar(64) DEFAULT NULL,
|
||||
`AllowedDomains` text,
|
||||
`InviteId` varchar(32) DEFAULT NULL,
|
||||
`SchemeId` varchar(255) DEFAULT NULL,
|
||||
`AllowOpenInvite` tinyint(1) DEFAULT NULL,
|
||||
`LastTeamIconUpdate` bigint(20) DEFAULT NULL,
|
||||
`SchemeId` varchar(255) DEFAULT NULL,
|
||||
PRIMARY KEY (`Id`),
|
||||
UNIQUE KEY `Name` (`Name`),
|
||||
KEY `idx_teams_name` (`Name`),
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -34,7 +34,7 @@ echo "Removing databases created for db comparison"
|
||||
docker exec mattermost-mysql mysql -uroot -pmostest -e "DROP DATABASE migrated; DROP DATABASE latest"
|
||||
|
||||
echo "Generating diff"
|
||||
diff $DUMPDIR/migrated.sql $DUMPDIR/latest.sql > $DUMPDIR/diff.txt
|
||||
git diff --word-diff=color $DUMPDIR/migrated.sql $DUMPDIR/latest.sql > $DUMPDIR/diff.txt
|
||||
diffErrorCode=$?
|
||||
|
||||
if [ $diffErrorCode -eq 0 ]; then
|
||||
|
||||
@@ -30,7 +30,7 @@ echo "Removing databases created for db comparison"
|
||||
docker exec mattermost-postgres sh -c 'exec echo "DROP DATABASE migrated; DROP DATABASE latest;" | exec psql -U mmuser mattermost_test'
|
||||
|
||||
echo "Generating diff"
|
||||
diff $DUMPDIR/migrated.sql $DUMPDIR/latest.sql > $DUMPDIR/diff.txt
|
||||
git diff --word-diff=color $DUMPDIR/migrated.sql $DUMPDIR/latest.sql > $DUMPDIR/diff.txt
|
||||
diffErrorCode=$?
|
||||
|
||||
if [ $diffErrorCode -eq 0 ]; then
|
||||
|
||||
Reference in New Issue
Block a user