hasura/graphql-engine

attempting to add a default value to a column used by a view results in an error

Open

#3,224 创建于 2019年10月24日

在 GitHub 查看
 (3 评论) (0 反应) (1 负责人)TypeScript (31,371 star) (2,787 fork)batch import
a/data/postgresc/consolee/easyhelp wantedk/bugp/high

描述

Via the console, attempting to add a default value to a column which is used by a postgres view results in the following error:

Modifying Column Failed:
postgres-error: cannot alter type of a column used by a view or rule

Note, we are not changing the column type, we are simply adding a default value. Performing the same operation directly on the database works as expected.

i.e.

alter table "UserProfilePermissions" alter column "emailAddresses" set default 'false';

贡献者指南