Skip to content

Commit c874f53

Browse files
committed
fix9
1 parent 8823c52 commit c874f53

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • ewm-service/src/main/java/ru/practicum/ewm/event/model

ewm-service/src/main/java/ru/practicum/ewm/event/model/Event.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ public class Event {
1919
@GeneratedValue(strategy = GenerationType.IDENTITY)
2020
private Long id;
2121

22-
@Column(nullable = false, length = 2000)
22+
@Column(nullable = false, columnDefinition = "TEXT")
2323
private String annotation;
2424

25-
@Column(nullable = false, length = 7000)
25+
@Column(nullable = false, columnDefinition = "TEXT")
2626
private String description;
2727

2828
@Column(name = "event_date", nullable = false)
@@ -47,7 +47,7 @@ public class Event {
4747
@Column(nullable = false, length = 20)
4848
private EventState state;
4949

50-
@Column(nullable = false, length = 120)
50+
@Column(nullable = false, length = 120, columnDefinition = "VARCHAR(120)")
5151
private String title;
5252

5353
private Long views;

0 commit comments

Comments
 (0)