From 0afc3ae6dd45ec8ba9d8d522d9367d510a3ba9cb Mon Sep 17 00:00:00 2001 From: Julie Qiu Date: Fri, 19 Apr 2019 14:28:28 -0400 Subject: [PATCH] migrations: add readme_file_path to versions The readme_file_path column is added to the versions table, which will be used to determine the markup type that the readme is written in. Change-Id: I2cfcd97a6e9e4bd102d1506916d5543e717e1927 Reviewed-on: https://team-review.git.corp.google.com/c/golang/discovery/+/451769 Reviewed-by: Robert Findley --- migrations/000028_add_readme_filepath.down.sql | 9 +++++++++ migrations/000028_add_readme_filepath.up.sql | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 migrations/000028_add_readme_filepath.down.sql create mode 100644 migrations/000028_add_readme_filepath.up.sql diff --git a/migrations/000028_add_readme_filepath.down.sql b/migrations/000028_add_readme_filepath.down.sql new file mode 100644 index 00000000..e9fce9b3 --- /dev/null +++ b/migrations/000028_add_readme_filepath.down.sql @@ -0,0 +1,9 @@ +-- Copyright 2019 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 versions DROP COLUMN readme_file_path; + +END; diff --git a/migrations/000028_add_readme_filepath.up.sql b/migrations/000028_add_readme_filepath.up.sql new file mode 100644 index 00000000..ee2cdf9f --- /dev/null +++ b/migrations/000028_add_readme_filepath.up.sql @@ -0,0 +1,9 @@ +-- Copyright 2019 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 versions ADD COLUMN readme_file_path TEXT; + +END;