Skip to content

Commit

Permalink
Increase columns length of the formats.
Browse files Browse the repository at this point in the history
  • Loading branch information
Anatoliy Sablin committed Aug 20, 2018
1 parent a2e03d4 commit 051ea72
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<groupId>io.github.ma1uta</groupId>
<artifactId>mxtoot</artifactId>
<version>0.4.6</version>
<version>0.4.7</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
19 changes: 13 additions & 6 deletions src/main/java/io/github/ma1uta/mxtoot/matrix/MxTootConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.Size;

/**
* Matrix bot persistent configuration.
Expand Down Expand Up @@ -75,19 +76,22 @@ public class MxTootConfig extends BotConfig {
/**
* Format of the regular posts.
*/
@Column(name = "mstdn_post_format")
@Column(name = "mstdn_post_format", length = 4000)
@Size(max = 4000)
private String postFormat;

/**
* Format of the reply.
*/
@Column(name = "mstdn_reply_format")
@Column(name = "mstdn_reply_format", length = 4000)
@Size(max = 4000)
private String replyFormat;

/**
* Format of the boost message.
*/
@Column(name = "mstdn_boost_format")
@Column(name = "mstdn_boost_format", length = 4000)
@Size(max = 4000)
private String boostFormat;

/**
Expand All @@ -111,19 +115,22 @@ public class MxTootConfig extends BotConfig {
/**
* Format of the mention message.
*/
@Column(name = "mstdn_mention_format")
@Column(name = "mstdn_mention_format", length = 4000)
@Size(max = 4000)
private String mentionFormat;

/**
* Format of the favourite message.
*/
@Column(name = "mstdn_favourite_format")
@Column(name = "mstdn_favourite_format", length = 4000)
@Size(max = 4000)
private String favouriteFormat;

/**
* Format of the follow format.
*/
@Column(name = "mstdn_follow_format")
@Column(name = "mstdn_follow_format", length = 4000)
@Size(max = 4000)
private String followFormat;

public String getMastodonServer() {
Expand Down

0 comments on commit 051ea72

Please sign in to comment.