Skip to content

Commit

Permalink
fix: allow unit_id to be empty string (#953)
Browse files Browse the repository at this point in the history
  • Loading branch information
zoe-icu committed Jun 14, 2023
2 parents f7aa845 + b1e4394 commit 0f80997
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<!--
APITable <https://github.com/apitable/apitable>
Copyright (C) 2022 APITable Ltd. <https://apitable.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero 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 Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->

<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.8.xsd">

<changeSet id="V0.21-20230614-001" author="Zoe" labels="unit">
<comment>add uuid column to unit</comment>
<sql>
ALTER TABLE `${table.prefix}unit` MODIFY `unit_id` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT 'unit show id';
</sql>
</changeSet>
</databaseChangeLog>
1 change: 1 addition & 0 deletions init-db/src/main/resources/db/changelog/0.21/master.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd">

<include file="db/changelog/0.21/20230517_changeset.xml"/>
<include file="db/changelog/0.21/20230614_changeset.xml"/>
</databaseChangeLog>

0 comments on commit 0f80997

Please sign in to comment.