mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-01-10 03:15:12 +00:00
[AB-284] resizing warn length and changing default date behaviour for mute
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
<column name="decayed" type="BOOLEAN">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="reason" type="VARCHAR(255)">
|
||||
<column name="reason" type="VARCHAR(2048)">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="warn_date" type="TIMESTAMP WITHOUT TIME ZONE">
|
||||
|
||||
@@ -97,7 +97,9 @@ public class Mute implements Serializable {
|
||||
|
||||
@PrePersist
|
||||
private void onInsert() {
|
||||
this.muteDate = Instant.now();
|
||||
if(muteDate == null) {
|
||||
this.muteDate = Instant.now();
|
||||
}
|
||||
}
|
||||
|
||||
@Column(name = "updated", insertable = false, updatable = false)
|
||||
|
||||
Reference in New Issue
Block a user