Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Creating a view using code.

$
0
0
I am generating this changeSet using CreateViewChange.java  but when I run the changelog is not executing the sql query.

<changeSet id="addView-v_list-2018-04-10-11:40:07" author="JpaModelToChangeLogTask" runAlways="false">
        <createViewChange selectQuery="SELECT apr_code, apr_name, aprx_string FROM t_list" viewName="v_aprdrglist"/>
 </changeSet>

I tried with CreateView but I can't create something like this:
<changeSet author="liquibase-docs" id="createView-example">
    <createView catalogName="cat"
            replaceIfExists="true"
            schemaName="public"
            viewName="v_person">select id, name from person where id > 10</createView>
</changeSet>
I will be grateful if you help me.

Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>