internal/derrors: create NotAcceptable error

Change-Id: I8a12317234d891a4d300402955ce167362448ca2
Reviewed-on: https://team-review.git.corp.google.com/c/golang/discovery/+/494244
Reviewed-by: Robert Findley <rfindley@google.com>
2 files changed
tree: e6eff02fddd4875b8bacf429c7f666295d92d5a5
  1. cmd/
  2. content/
  3. internal/
  4. migrations/
  5. .gitignore
  6. all.bash
  7. CONTRIBUTING.md
  8. go.mod
  9. go.sum
  10. LICENSE
  11. PATENTS
  12. README.md
README.md

Go Module Discovery Site

Getting Started

Requirements

Migrations

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.