diff --git a/migrations/000034_documents_drop_not_null_on_tokens.down.sql b/migrations/000034_documents_drop_not_null_on_tokens.down.sql new file mode 100644 index 00000000..ec22bd4c --- /dev/null +++ b/migrations/000034_documents_drop_not_null_on_tokens.down.sql @@ -0,0 +1,10 @@ +-- 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 documents ALTER COLUMN name_tokens SET NOT NULL; +ALTER TABLE documents ALTER COLUMN path_tokens SET NOT NULL; + +END; diff --git a/migrations/000034_documents_drop_not_null_on_tokens.up.sql b/migrations/000034_documents_drop_not_null_on_tokens.up.sql new file mode 100644 index 00000000..6117b7b3 --- /dev/null +++ b/migrations/000034_documents_drop_not_null_on_tokens.up.sql @@ -0,0 +1,10 @@ +-- 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 documents ALTER COLUMN name_tokens DROP NOT NULL; +ALTER TABLE documents ALTER COLUMN path_tokens DROP NOT NULL; + +END;