Skip to content

Commit 71c8f49

Browse files
committed
SB-1475: change ArtifactEntry.created property type from 'date' into 'datetime'
1 parent 9b6ac73 commit 71c8f49

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

strongbox-db-liquibase/src/main/resources/db/changelog/v1.0.0/db.changelog-1.0.0.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@
2424
<include file="v1.0.0.18__ArtifactGroup.xml" relativeToChangelogFile="true"/>
2525
<include file="v1.0.0.19__ArtifactEntry.xml" relativeToChangelogFile="true"/>
2626
<include file="v1.0.0.20__User.xml" relativeToChangelogFile="true"/>
27+
<include file="v1.0.0.21__ArtifactEntry.xml" relativeToChangelogFile="true"/>
2728

2829
</databaseChangeLog>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
2+
xmlns:o="http://www.unbroken-dome.org/schema/liquibase-orientdb"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
5+
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.2.xsd">
6+
7+
<changeSet id="v1.0.0.21" author="strongbox-dev@carlspring.com">
8+
<!-- <sql>
9+
update ArtifactEntry set createdTemp = created.asDatetime();
10+
drop property ArtifactEntry.created;
11+
update ArtifactEntry remove created;
12+
update ArtifactEntry set created = createdTemp;
13+
update ArtifactEntry remove createdTemp;
14+
create property ArtifactEntry.created datetime;
15+
</sql>-->
16+
17+
<o:changePropertyTypeDateToDatetime propertyName="created" className="ArtifactEntry"/>
18+
</changeSet>
19+
20+
</databaseChangeLog>
21+

0 commit comments

Comments
 (0)