migrations: add search_documents.path_id column

A search_documents.path_id column is added, which will become a FK to
the paths table.

For golang/go#39629

Change-Id: I4c24c1f93229afb758d4ca0a451fd3a4f6d01f0b
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/265248
Trust: Julie Qiu <julie@golang.org>
Run-TryBot: Julie Qiu <julie@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
This commit is contained in:
Julie Qiu 2020-10-26 21:58:30 -04:00
Родитель 8880d3090d
Коммит 470a8bc95c
2 изменённых файлов: 18 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,9 @@
-- Copyright 2020 The Go Authors. All rights reserved.
-- Use of this source code is governed by a BSD-style
-- license that can be found in the LICENSE file.
BEGIN;
ALTER table search_documents DROP COLUMN path_id;
END;

Просмотреть файл

@ -0,0 +1,9 @@
-- Copyright 2020 The Go Authors. All rights reserved.
-- Use of this source code is governed by a BSD-style
-- license that can be found in the LICENSE file.
BEGIN;
ALTER table search_documents ADD COLUMN path_id integer;
END;