Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

liquibase create table example

<changeSet id="1" author="liquibase">
   <createTable tableName="department">
           <column name="id" type="int">
           <constraints primaryKey="true"/>
           </column>
           <column name="dept" type="varchar(${dep.size})">
           <constraints nullable="false"/>
           </column>
           <column name="emp_id" type="int">
           <constraints nullable="false"/>
         </column>
       </createTable>
     </changeSet>
Source by docs.liquibase.com #
 
PREVIOUS NEXT
Tagged: #liquibase #create #table
ADD COMMENT
Topic
Name
6+6 =