Fixing an issue related the 'CHECK OPTION' (introduced PostgreSQL 9.4) is only applicable to the views, and not the materialized views

Signed-off-by: olshevskiy87 <olshevskiy87@bk.ru>