Skip to content

Commit

Permalink
fix : 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
GaBaljaintheroom committed Jan 8, 2024
1 parent 1f2a571 commit 4f7129d
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/google-java-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Format

on: [ push, pull_request ]

jobs:

formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: axel-op/googlejavaformat-action@v3
with:
args: "--replace"
skip-commit: true
- name: Print diffs
run: git --no-pager diff --exit-code
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import jakarta.persistence.Column;
import jakarta.persistence.Embeddable;
import jakarta.persistence.Table;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.NoArgsConstructor;
Expand All @@ -11,7 +10,6 @@
@Getter
@NoArgsConstructor(access = AccessLevel.PROTECTED)
public class Address {
public class Address extends BaseEntity {

@Column(name = "province", nullable = false)
private String province;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class Capsule extends BaseEntity {
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

@Column(name = "due_date", nullable = true)
@Column(name = "due_date")
private ZonedDateTime dueDate;

@Column(name = "longitude", nullable = false)
Expand Down
8 changes: 4 additions & 4 deletions backend/core/src/main/resources/db/migration/V1__init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ CREATE TABLE core.member
member_id BIGINT AUTO_INCREMENT PRIMARY KEY,
updated_at timestamp NULL,
phone VARCHAR(255) NULL,
nickname VARCHAR(255) NOT NULL,
oauth2_provider VARCHAR(255) NOT NULL,
nickname VARCHAR(255) NOT NULL,
oauth2_provider VARCHAR(255) NOT NULL,
email VARCHAR(255) NULL,
fcm_token VARCHAR(255) NULL,
profile_url VARCHAR(255) NOT NULL
Expand All @@ -30,7 +30,7 @@ CREATE TABLE core.capsule_skin
member_id BIGINT NOT NULL,
size BIGINT NOT NULL,
updated_at timestamp NULL,
skin_name VARCHAR(255) NOT NULL,
skin_name VARCHAR(255) NOT NULL,
image_url VARCHAR(255) NOT NULL,
motion_name VARCHAR(255) NOT NULL,
CONSTRAINT fk_capsule_skin_member_id
Expand All @@ -49,7 +49,7 @@ CREATE TABLE core.capsule
group_id BIGINT NOT NULL,
member_id BIGINT NOT NULL,
updated_at timestamp NULL,
village VARCHAR(255) NOT NULL,
village VARCHAR(255) NOT NULL,
city VARCHAR(255) NOT NULL,
province VARCHAR(255) NOT NULL,
sub_district VARCHAR(255) NOT NULL,
Expand Down

0 comments on commit 4f7129d

Please sign in to comment.