view 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 source

<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>