我重命名了一个表,显然其中的外键没有改变,并导致问题,尽管当\d error我得到: "error_test_id_fkey" FOREIGN KEY (test_id) REFERENCES test(id) ON DELETE CASCADE
\d error
"error_test_id_fkey" FOREIGN KEY (test_id) REFERENCES test(id) ON DELETE CASCADE
与error名字唯一的关系是名字(奇怪)
error
无论如何 - 我删除外键并重新创建它没有问题,但我不知道该怎么做
postgresql
postgresql ×1