From 0cb7b61fb131984eb97ad1e16e55e59c5f45350e Mon Sep 17 00:00:00 2001 From: Julie Qiu Date: Mon, 26 Oct 2020 10:46:55 -0400 Subject: [PATCH] migrations: drop modules.readme_* columns The columns modules.readme_file_path and modules.readme_contents are dropped, since they are no longer being used. For golang/go#39629 Change-Id: I3829bdeb4eea9a5b8fb4a706641714a3aa8bfefc Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/265097 Trust: Julie Qiu Run-TryBot: Julie Qiu Reviewed-by: Jamal Carvalho TryBot-Result: kokoro --- .../000037_drop_modules_readme_columns.down.sql | 11 +++++++++++ migrations/000037_drop_modules_readme_columns.up.sql | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 migrations/000037_drop_modules_readme_columns.down.sql create mode 100644 migrations/000037_drop_modules_readme_columns.up.sql diff --git a/migrations/000037_drop_modules_readme_columns.down.sql b/migrations/000037_drop_modules_readme_columns.down.sql new file mode 100644 index 000000000..f9becf991 --- /dev/null +++ b/migrations/000037_drop_modules_readme_columns.down.sql @@ -0,0 +1,11 @@ +-- 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 modules + ADD COLUMN readme_file_path TEXT, + ADD COLUMN readme_contents TEXT; + +END; diff --git a/migrations/000037_drop_modules_readme_columns.up.sql b/migrations/000037_drop_modules_readme_columns.up.sql new file mode 100644 index 000000000..ed3d54194 --- /dev/null +++ b/migrations/000037_drop_modules_readme_columns.up.sql @@ -0,0 +1,11 @@ +-- 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 modules + DROP COLUMN readme_file_path, + DROP COLUMN readme_contents; + +END;