Skip to content

Commit 470a8bc

Browse files
committed
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 <[email protected]> Run-TryBot: Julie Qiu <[email protected]> TryBot-Result: kokoro <[email protected]> Reviewed-by: Jamal Carvalho <[email protected]>
1 parent 8880d30 commit 470a8bc

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
-- Copyright 2020 The Go Authors. All rights reserved.
2+
-- Use of this source code is governed by a BSD-style
3+
-- license that can be found in the LICENSE file.
4+
5+
BEGIN;
6+
7+
ALTER table search_documents DROP COLUMN path_id;
8+
9+
END;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
-- Copyright 2020 The Go Authors. All rights reserved.
2+
-- Use of this source code is governed by a BSD-style
3+
-- license that can be found in the LICENSE file.
4+
5+
BEGIN;
6+
7+
ALTER table search_documents ADD COLUMN path_id integer;
8+
9+
END;

0 commit comments

Comments
 (0)