pluginprojects.sta1.liquibase.tableProjects.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.Projects Show documentation
Show all versions of FROST-Server.Plugin.Projects Show documentation
A Projects Plugin for the SensorThings API
<?xml version="1.1" 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="generated" id="2024-07-29-PROJECTS-1" objectQuotingStrategy="QUOTE_ALL_OBJECTS"> <preConditions onFail="MARK_RAN"> <changeLogPropertyDefined property="id-Project" value="LONG" /> <not> <tableExists tableName="PROJECTS" /> </not> </preConditions> <createTable tableName="PROJECTS"> <column name="ID" type="${idTypeLong}" autoIncrement="true"> <constraints primaryKey="true" primaryKeyName="pk_PROJECTS" /> </column> </createTable> </changeSet> <changeSet author="generated" id="2024-07-29-PROJECTS-2" objectQuotingStrategy="QUOTE_ALL_OBJECTS"> <preConditions onFail="MARK_RAN"> <or> <changeLogPropertyDefined property="id-Project" value="STRING" /> <changeLogPropertyDefined property="id-Project" value="UUID" /> </or> <not> <tableExists tableName="PROJECTS" /> </not> </preConditions> <createTable tableName="PROJECTS"> <column name="ID" type="${idType-Project}" defaultValueComputed="${defaultValueComputed-Project}"> <constraints primaryKey="true" primaryKeyName="pk_PROJECTS"/> </column> </createTable> </changeSet> <changeSet author="generated" id="2024-07-29-PROJECTS-3" objectQuotingStrategy="QUOTE_ALL_OBJECTS"> <preConditions onFail="MARK_RAN"> <not> <columnExists columnName="NAME" tableName="PROJECTS" /> </not> </preConditions> <addColumn tableName="PROJECTS"> <column name="NAME" type="TEXT"/> <column name="DESCRIPTION" type="TEXT"/> <column name="ISPUBLIC" type="BOOLEAN"/> <column name="PROPERTIES" type="JSONB"/> </addColumn> <createIndex tableName="PROJECTS" indexName="PROJECTS_NAME_IDX" unique="true"> <column name="NAME"/> </createIndex> </changeSet> </databaseChangeLog>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy