DO $$
    BEGIN
        BEGIN
            ALTER TABLE cd_dojos ADD facebook character varying;
        EXCEPTION WHEN OTHERS THEN

            RAISE NOTICE 'The transaction is in an uncommittable state. '
                             'Transaction was rolled back';

            RAISE NOTICE 'Details: % %', SQLERRM, SQLSTATE;
        END;
    END;
$$

Add facebook to dojo schema
Add facebook to dojo schema
