diff --git a/infrastructure/src/main/kotlin/com/dobby/persistence/entity/experiment/ExperimentPostEntity.kt b/infrastructure/src/main/kotlin/com/dobby/persistence/entity/experiment/ExperimentPostEntity.kt index 7c7377fe..eba5786a 100644 --- a/infrastructure/src/main/kotlin/com/dobby/persistence/entity/experiment/ExperimentPostEntity.kt +++ b/infrastructure/src/main/kotlin/com/dobby/persistence/entity/experiment/ExperimentPostEntity.kt @@ -41,7 +41,7 @@ class ExperimentPostEntity( @Column(name = "views") var views: Int, - @Column(name = "title", nullable = false, length = 70) + @Column(name = "title", nullable = false, length = 150) var title: String, @Column(name = "content", nullable = false, length = 5000) diff --git a/infrastructure/src/main/resources/db/migration/V202508031601__extend_title_length_in_experiment_post.sql b/infrastructure/src/main/resources/db/migration/V202508031601__extend_title_length_in_experiment_post.sql new file mode 100644 index 00000000..e276aca1 --- /dev/null +++ b/infrastructure/src/main/resources/db/migration/V202508031601__extend_title_length_in_experiment_post.sql @@ -0,0 +1 @@ +ALTER TABLE experiment_post MODIFY COLUMN title VARCHAR(150) NOT NULL;