зеркало из https://github.com/golang/pkgsite.git
migrations: drop units.v1_path
Change-Id: Ic2d0ee5f9dc6298f285fdcd6276e535e7c8181ec Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/284573 Run-TryBot: Julie Qiu <julie@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jonathan Amsterdam <jba@google.com> Trust: Julie Qiu <julie@golang.org>
This commit is contained in:
Родитель
7328fabf02
Коммит
fdb9eed735
|
@ -0,0 +1,10 @@
|
|||
-- 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 ADD COLUMN v1_path TEXT;
|
||||
CREATE INDEX units_v1_path_key ON units(v1_path);
|
||||
|
||||
END;
|
|
@ -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 DROP COLUMN v1_path;
|
||||
|
||||
END;
|
Загрузка…
Ссылка в новой задаче