liquibase.plugincoremodel.tableSensors.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of FROST-Server.Plugin.CoreModel Show documentation
Show all versions of FROST-Server.Plugin.CoreModel Show documentation
The plugin that supplies the core SensorThings API version 1.1 data model.
<?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"> <!-- Copyright (C) 2024 Fraunhofer Institut IOSB, Fraunhoferstr. 1, D 76131 Karlsruhe, Germany. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. --> <changeSet author="scf" id="2021-01-01-sensors-1" objectQuotingStrategy="QUOTE_ALL_OBJECTS"> <preConditions onFail="MARK_RAN"> <not> <tableExists tableName="SENSORS" /> </not> </preConditions> <createTable tableName="SENSORS"> <column name="NAME" type="TEXT"/> <column name="DESCRIPTION" type="TEXT"/> <column name="PROPERTIES" type="JSONB"/> <column name="ENCODING_TYPE" type="TEXT"/> <column name="METADATA" type="TEXT"/> </createTable> </changeSet> <changeSet author="scf" id="2021-01-01-sensors-2" objectQuotingStrategy="QUOTE_ALL_OBJECTS"> <validCheckSum>8:d3c0fdd93f39a4c5e8d4d48794eaed3b</validCheckSum> <preConditions onFail="MARK_RAN"> <changeLogPropertyDefined property="id-Sensor" value="LONG" /> <not> <columnExists columnName="ID" tableName="SENSORS" /> </not> </preConditions> <addColumn tableName="SENSORS"> <column name="ID" type="${idTypeLong}" autoIncrement="true"> <constraints primaryKey="true" primaryKeyName="SENSORS_PKEY" /> </column> </addColumn> </changeSet> <changeSet author="scf" id="2021-01-01-sensors-3" objectQuotingStrategy="QUOTE_ALL_OBJECTS"> <validCheckSum>8:7793864b12aef84673b255ada3b48132</validCheckSum> <preConditions onFail="MARK_RAN"> <or> <changeLogPropertyDefined property="id-Sensor" value="STRING" /> <changeLogPropertyDefined property="id-Sensor" value="UUID" /> </or> <not> <columnExists columnName="ID" tableName="SENSORS" /> </not> </preConditions> <addColumn tableName="SENSORS"> <column name="ID" type="${idType-Sensor}" defaultValueComputed="${defaultValueComputed-Sensor}"> <constraints primaryKey="true" primaryKeyName="SENSORS_PKEY"/> </column> </addColumn> </changeSet> </databaseChangeLog>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy