commit | 2484dbf6d896a3002d1ee06ee471810c4405891b | [log] [tgz] |
---|---|---|
author | Julie Qiu <julie@golang.org> | Thu Feb 14 16:31:38 2019 -0500 |
committer | Julie Qiu <julie@golang.org> | Fri Mar 27 16:46:33 2020 -0400 |
tree | 584e33036308bc7c956de01c6358ead184ed4917 | |
parent | 1e7ae17793bac6e9b80f236c9019b4f8f54a6e84 [diff] |
discovery: update LICENSE formatting The LICENSE file formatting is updated to match the standard Go BSD license. Change-Id: I507d7d13e01873cfac6ab8f359de4f56409b4497 Reviewed-on: https://team-review.git.corp.google.com/c/417742 Reviewed-by: Andrew Bonventre <andybons@google.com>
Migrations are managed with the golang-migrate/migrate CLI tool.
To run all the migrations:
migrate -source file:migrations -database "postgres://localhost:5432/discovery-database?sslmode=disable" up
To create a new migration:
migrate create -ext sql -dir migrations -seq <title>
This creates two empty files in /migrations
:
{version}_{title}.up.sql {version}_{title}.down.sql
The two migration files are used to migrate “up” to the specified version from the previous version, and to migrate “down” to the previous version. See golang-migrate/migrate/MIGRATIONS.md for details.