Skip to content

Commit 1f7534a

Browse files
committed
migrations: make licenses.module_path and licenses.version nullable
Drop the NOT NULL constraint on licenses.module_path and licenses.version, so that we can stop inserting into these rows in the next CL. In a later CL, licenses.module_path and licenses.version will be dropped. For golang/go#39629 Change-Id: Ie917498306d46e03a761af32406356774a18fc78 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/272086 Trust: Julie Qiu <[email protected]> Run-TryBot: Julie Qiu <[email protected]> TryBot-Result: kokoro <[email protected]> Reviewed-by: Jonathan Amsterdam <[email protected]>
1 parent 5e6c29f commit 1f7534a

2 files changed

+22
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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 licenses
8+
ALTER COLUMN module_path SET NOT NULL,
9+
ALTER COLUMN version SET NOT NULL;
10+
11+
END;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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 licenses
8+
ALTER COLUMN module_path DROP NOT NULL,
9+
ALTER COLUMN version DROP NOT NULL;
10+
11+
END;

0 commit comments

Comments
 (0)