mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Add database migration for username length change.
This commit is contained in:
parent
c1fde372a5
commit
024435ff54
2 changed files with 16 additions and 0 deletions
|
@ -6,5 +6,6 @@
|
|||
|
||||
<include file="version/0-init.xml" relativeToChangelogFile="true"/>
|
||||
<include file="version/1-fix-subs.xml" relativeToChangelogFile="true"/>
|
||||
<include file="version/2-oidc.xml" relativeToChangelogFile="true"/>
|
||||
|
||||
</databaseChangeLog>
|
||||
|
|
15
src/main/resources/changelog/version/2-oidc.xml
Normal file
15
src/main/resources/changelog/version/2-oidc.xml
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<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
|
||||
https://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
|
||||
|
||||
<changeSet id="2-0" author="kavin" runInTransaction="false">
|
||||
<!-- alter username's varchar length to 32 from 24 -->
|
||||
<sql>ALTER TABLE users ALTER COLUMN username TYPE varchar(32);</sql>
|
||||
<rollback>
|
||||
<sql>ALTER TABLE users ALTER COLUMN username TYPE varchar(24);</sql>
|
||||
</rollback>
|
||||
</changeSet>
|
||||
|
||||
</databaseChangeLog>
|
Loading…
Reference in a new issue