DELETE FROM
    post
WHERE
    link IS NULL
    OR link = '';

ALTER TABLE
    post
ALTER COLUMN
    link
SET
    NOT NULL;

ALTER TABLE
    post
ADD
    CONSTRAINT link CHECK (link <> '');
