diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/eu/mulk/mulkcms2/benki/bookmarks/Bookmark.java | 4 | ||||
-rw-r--r-- | src/main/resources/db/changeLog-1.9.xml | 17 | ||||
-rw-r--r-- | src/main/resources/db/changeLog.xml | 1 |
3 files changed, 22 insertions, 0 deletions
diff --git a/src/main/java/eu/mulk/mulkcms2/benki/bookmarks/Bookmark.java b/src/main/java/eu/mulk/mulkcms2/benki/bookmarks/Bookmark.java index 25fe683..7126595 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/bookmarks/Bookmark.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/bookmarks/Bookmark.java @@ -18,6 +18,10 @@ public class Bookmark extends Post<BookmarkText> { @Column(name = "uri", nullable = false, length = -1) public String uri; + @CheckForNull + @Column(name = "via", length = -1) + public String via; + @ElementCollection(fetch = FetchType.LAZY) @CollectionTable( name = "bookmark_tags", diff --git a/src/main/resources/db/changeLog-1.9.xml b/src/main/resources/db/changeLog-1.9.xml new file mode 100644 index 0000000..ec7bde8 --- /dev/null +++ b/src/main/resources/db/changeLog-1.9.xml @@ -0,0 +1,17 @@ +<?xml version="1.1" 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 + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.10.xsd"> + + <changeSet author="mulk" id="1.9-1"> + <addColumn tableName="bookmarks" schemaName="benki"> + <column name="via" type="text"> + <constraints nullable="true"/> + </column> + </addColumn> + </changeSet> + +</databaseChangeLog>
\ No newline at end of file diff --git a/src/main/resources/db/changeLog.xml b/src/main/resources/db/changeLog.xml index 88937a3..34bd3b1 100644 --- a/src/main/resources/db/changeLog.xml +++ b/src/main/resources/db/changeLog.xml @@ -15,5 +15,6 @@ <include file="db/changeLog-1.6.xml"/> <include file="db/changeLog-1.7.xml"/> <include file="db/changeLog-1.8.xml"/> + <include file="db/changeLog-1.9.xml"/> </databaseChangeLog> |