-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: Alter ip column in events to for IPV6 and add event tracking…
… to V2
- Loading branch information
Daniel Palafox
committed
Apr 4, 2024
1 parent
e06eeb5
commit e86c9f6
Showing
8 changed files
with
146 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
orcid-persistence/src/main/resources/db/updates/alter_ip_col_in_events.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<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-2.0.xsd"> | ||
|
||
<changeSet id="ADD-FIELD-TO-EVENT" author="Daniel Palafox" dbms="hsqldb"> | ||
<preConditions onFail="MARK_RAN"> | ||
<columnExists tableName="event" columnName="ip"/> | ||
</preConditions> | ||
<sql>ALTER TABLE event ALTER COLUMN ip VARCHAR(60);</sql> | ||
</changeSet> | ||
|
||
<changeSet id="ADD-FIELD-TO-EVENT_STATS" author="Daniel Palafox" dbms="hsqldb"> | ||
<preConditions onFail="MARK_RAN"> | ||
<columnExists tableName="event_stats" columnName="ip"/> | ||
</preConditions> | ||
<sql>ALTER TABLE event_stats ALTER COLUMN ip VARCHAR(60);</sql> | ||
</changeSet> | ||
|
||
<changeSet id="ADD-FIELD-TO-EVENT" author="Daniel Palafox" dbms="postgresql"> | ||
<preConditions onFail="MARK_RAN"> | ||
<columnExists tableName="event" columnName="ip"/> | ||
</preConditions> | ||
<sql>ALTER TABLE event ALTER COLUMN ip TYPE VARCHAR(60);</sql> | ||
</changeSet> | ||
|
||
<changeSet id="ADD-FIELD-TO-EVENT_STATS" author="Daniel Palafox" dbms="postgresql"> | ||
<preConditions onFail="MARK_RAN"> | ||
<columnExists tableName="event_stats" columnName="ip"/> | ||
</preConditions> | ||
<sql>ALTER TABLE event_stats ALTER COLUMN ip TYPE VARCHAR(60);</sql> | ||
</changeSet> | ||
|
||
</databaseChangeLog> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.