mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-04-15 20:16:34 +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">
|
<column name="decayed" type="BOOLEAN">
|
||||||
<constraints nullable="false"/>
|
<constraints nullable="false"/>
|
||||||
</column>
|
</column>
|
||||||
<column name="reason" type="VARCHAR(255)">
|
<column name="reason" type="VARCHAR(2048)">
|
||||||
<constraints nullable="false"/>
|
<constraints nullable="false"/>
|
||||||
</column>
|
</column>
|
||||||
<column name="warn_date" type="TIMESTAMP WITHOUT TIME ZONE">
|
<column name="warn_date" type="TIMESTAMP WITHOUT TIME ZONE">
|
||||||
|
|||||||
@@ -97,7 +97,9 @@ public class Mute implements Serializable {
|
|||||||
|
|
||||||
@PrePersist
|
@PrePersist
|
||||||
private void onInsert() {
|
private void onInsert() {
|
||||||
this.muteDate = Instant.now();
|
if(muteDate == null) {
|
||||||
|
this.muteDate = Instant.now();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Column(name = "updated", insertable = false, updatable = false)
|
@Column(name = "updated", insertable = false, updatable = false)
|
||||||
|
|||||||
Reference in New Issue
Block a user