Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: allow unit_id to be empty string #953

Merged
merged 1 commit into from
Jun 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
Loading