forked from divad12/khan-dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to Postgresql 14 from 11, along with mac update script
Signed-off-by: Steve Coffman <[email protected]>
- Loading branch information
1 parent
17a9920
commit b432f2e
Showing
6 changed files
with
46 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
brew install golang-migrate || echo "golang-migrate is already installed" | ||
|
||
if brew ls postgresql@14 >/dev/null 2>&1 ; then | ||
echo "postgresql@14 already installed" | ||
else | ||
# We do not have pg14 installed | ||
brew install postgresql@14 | ||
fi | ||
brew services stop postgresql@11 || echo "postgresql@11 not running" | ||
brew services start postgresql@14 || echo "postgresql@14 is already running" | ||
psql --quiet -c "CREATE ROLE postgres LOGIN SUPERUSER;" postgres; | ||
~/khan/webapp/services/progress-reports/create_databases.sh | ||
cd ~/khan/webapp/services/progress-reports/migrations/ | ||
migrate -verbose -path . -database 'postgres://postgres@localhost:5432/khan_dev?sslmode=disable' up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters