Обсуждение: [1.4rc1] Can't rename constraint

Поиск
Список
Период
Сортировка

[1.4rc1] Can't rename constraint

От
Chris
Дата:
How do I rename a constraint? 

I'm only doing this because I can't change the type of a column from char(30) to
varchar(64). So I renamed to original table, but the constraints seems to be
globally unique. I don't know why, but this simple exercise of changing a column
type is getting very messy and time consuming. 

What I'm trying to do now is rename the table, create a new table with the
desired column definition and then add one table from the other, then drop the
old table.



Re: [1.4rc1] Can't rename constraint

От
Andreas Pflug
Дата:
Chris wrote:
> How do I rename a constraint? 

You can't. Drop and recreate it.

Regards,
Andreas