Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit16797a0

Browse files
Step 5. Append changeset to existing changelog
1 parent22a6d3b commit16797a0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

‎liquibase-and-spring-boot/blog/src/main/java/io/amplicode/blog/model/Comment.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
@Entity
99
@Table(name ="comments")
1010
publicclassCommentextendsBaseEntity {
11-
@Column(name ="text")
11+
@Column(name ="text",nullable =false)
1212
privateStringtext;
1313

1414
@ManyToOne(fetch =FetchType.LAZY,optional =false)

‎liquibase-and-spring-boot/blog/src/main/resources/db/changelog/2024/05/15-01-changelog-add-comments-table.xml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,8 @@
4545
constraintName="fk_poscom_on_post"referencedColumnNames="id"
4646
referencedTableName="posts"/>
4747
</changeSet>
48+
<changeSetid="1715756242798-1"author="georgii (generated)">
49+
<addNotNullConstraintcolumnDataType="VARCHAR(255)"columnName="text"tableName="comments"validate="true"/>
50+
</changeSet>
4851

4952
</databaseChangeLog>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp