Mercurial > hg > SpringPlayground
diff spring-boot-playground/src/main/resources/liquibase/changelog.xml @ 6:d57d0c6a841b
Einbau von liquibase zum Erzeugen des Schemas
author | Dirk Olmes <dirk.olmes@codedo.de> |
---|---|
date | Thu, 13 Aug 2020 16:18:20 +0200 |
parents | |
children | a633d0623278 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/spring-boot-playground/src/main/resources/liquibase/changelog.xml Thu Aug 13 16:18:20 2020 +0200 @@ -0,0 +1,18 @@ +<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd"> + + <changeSet id="create_table" author="olmes"> + <createTable tableName="MOVIE"> + <column name="ID" type="INT"> + <constraints primaryKey="true"/> + </column> + <column name="TITLE" type="VARCHAR"> + </column> + </createTable> + </changeSet> + <changeSet id="create_sequence" author="olmes"> + <createSequence sequenceName="HIBERNATE_SEQUENCE"/> + </changeSet> +</databaseChangeLog>