Skip to content

Commit

Permalink
Merge pull request #629 from GiganticMinecraft/fix/update-at-migration
Browse files Browse the repository at this point in the history
fix: form_meta_data の updated_at カラムに on update current_stamp を追加
  • Loading branch information
rito528 authored Dec 15, 2024
2 parents ba00e86 + 17354ee commit 9e94686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/migration/src/m20220101_000001_create_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl MigrationTrait for Migration {
answer_visibility ENUM('PUBLIC', 'PRIVATE') NOT NULL DEFAULT 'PRIVATE',
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
created_by CHAR(36) NOT NULL,
updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
updated_by CHAR(36) NOT NULL,
FOREIGN KEY fk_form_meta_data_created_by(created_by) REFERENCES users(id),
FOREIGN KEY fk_form_meta_data_updated_by(updated_by) REFERENCES users(id)
Expand Down

0 comments on commit 9e94686

Please sign in to comment.