migrations: make units.v1_path nullable

Change-Id: I46054a6ceb276590a09daa4c2a72d9267c1e2e0d
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/284578
Trust: Julie Qiu <julie@golang.org>
Run-TryBot: Julie Qiu <julie@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
diff --git a/migrations/000060_set_units_v1_path_nullable.down.sql b/migrations/000060_set_units_v1_path_nullable.down.sql
new file mode 100644
index 0000000..4234b93
--- /dev/null
+++ b/migrations/000060_set_units_v1_path_nullable.down.sql
@@ -0,0 +1,9 @@
+-- Copyright 2021 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 units ALTER COLUMN v1_path SET NOT NULL;
+
+END;
diff --git a/migrations/000060_set_units_v1_path_nullable.up.sql b/migrations/000060_set_units_v1_path_nullable.up.sql
new file mode 100644
index 0000000..69ad674
--- /dev/null
+++ b/migrations/000060_set_units_v1_path_nullable.up.sql
@@ -0,0 +1,9 @@
+-- Copyright 2021 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 units ALTER COLUMN v1_path DROP NOT NULL;
+
+END;