migrations: add NOT NULL constraint to versions.commit_time

Change-Id: If38eb3cdfebd1ea960280830a64a61fc8db5d6f7
Reviewed-on: https://team-review.git.corp.google.com/c/424249
Reviewed-by: Channing Kimble-Brown <ckimblebrown@google.com>
This commit is contained in:
Julie Qiu 2019-02-27 13:36:25 -05:00
Родитель ae504474f3
Коммит b8bb5b03f7
2 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,5 @@
-- Copyright 2009 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.
ALTER TABLE versions ALTER COLUMN commit_time DROP NOT NULL;

Просмотреть файл

@ -0,0 +1,5 @@
-- Copyright 2009 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.
ALTER TABLE versions ALTER COLUMN commit_time SET NOT NULL;