db.1-create_event.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <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="1-create-event" author="lorent"> <createSequence sequenceName="seq_events" /> <createTable tableName="events"> <column name="id" type="bigint" defaultValueSequenceNext="seq_events"> <constraints primaryKey="true" nullable="false"/> </column> <column name="uuid" type="uuid"> <constraints nullable="false"/> </column> <column name="emitter" type="varchar(255)" /> <column name="name" type="varchar(255)" /> <column name="kind" type="varchar(255)" /> <column name="timestamp" type="timestamp" /> <column name="stored_at" type="timestamp" /> <column name="data" type="jsonb" /> </createTable> </changeSet> </databaseChangeLog>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy