Skip to content

Dev: add script to update schema

Warren Gifford requested to merge script-to-update-schema into master

Created by: chrismwendt

Until https://github.com/sourcegraph/sourcegraph/pull/5752 is implemented, this is a convenient way to update schema.md and bindata.go:

$ ./dev/update-schema-and-bindata.sh
localhost:5433 - no response
Sleeping 1s to wait for the postgres Docker container to start...
localhost:5433 - no response
Sleeping 1s to wait for the postgres Docker container to start...
localhost:5433 - accepting connections
Start buffering 1528395582/u squashed_migrations
...
Start buffering 1528395593/u allows_trailing_hyphen_in_usernames
Read and execute 1528395582/u squashed_migrations
Finished 1528395582/u squashed_migrations (read 11.768334ms, ran 323.917385ms)
...
Finished 1528395603/u add_patterntype_to_saved_searches (read 318.975088ms, ran 16.152499ms)
757f3dc89c42e65e9d6f2152509569494783bd242c6b2a718ccb2f476a200847

This is homebrew macOS only because I don't know where the bin directory will be for Linux or other installations.

Original formulation of this: https://github.com/sourcegraph/sourcegraph/pull/5734#issuecomment-541229084

Hard to get the same output as CI: https://sourcegraph.slack.com/archives/C07KZF47K/p1570664138024100

Merge request reports

Loading