Remove non-null constraints from some devfile fields; (#13516)

7.20.x
Max Shaposhnik 2019-06-12 09:26:04 +03:00 committed by GitHub
parent caae00e21b
commit de24123e4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,16 @@
--
-- Copyright (c) 2012-2019 Red Hat, Inc.
-- This program and the accompanying materials are made
-- available under the terms of the Eclipse Public License 2.0
-- which is available at https://www.eclipse.org/legal/epl-2.0/
--
-- SPDX-License-Identifier: EPL-2.0
--
-- Contributors:
-- Red Hat, Inc. - initial API and implementation
--
ALTER TABLE devfile_entrypoint ALTER COLUMN parent_name DROP NOT NULL;
ALTER TABLE devfile_entrypoint ALTER COLUMN container_name DROP NOT NULL;
ALTER TABLE devfile_action ALTER COLUMN component DROP NOT NULL;

View File

@ -0,0 +1,17 @@
--
-- Copyright (c) 2012-2019 Red Hat, Inc.
-- This program and the accompanying materials are made
-- available under the terms of the Eclipse Public License 2.0
-- which is available at https://www.eclipse.org/legal/epl-2.0/
--
-- SPDX-License-Identifier: EPL-2.0
--
-- Contributors:
-- Red Hat, Inc. - initial API and implementation
--
ALTER TABLE devfile_entrypoint
MODIFY COLUMN parent_name VARCHAR(255) NULL DEFAULT NULL,
MODIFY COLUMN container_name VARCHAR(255) NULL DEFAULT NULL;
ALTER TABLE devfile_action MODIFY COLUMN component VARCHAR(255) NULL DEFAULT NULL;