From 17354eee2d4a387e6ad9d50bbab38312312afc09 Mon Sep 17 00:00:00 2001 From: rito528 <39003544+rito528@users.noreply.github.com> Date: Sun, 15 Dec 2024 14:00:02 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20form=5Fmeta=5Fdata=20=E3=81=AE=20updated?= =?UTF-8?q?=5Fat=20=E3=82=AB=E3=83=A9=E3=83=A0=E3=81=AB=20on=20update=20cu?= =?UTF-8?q?rrent=5Fstamp=20=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/migration/src/m20220101_000001_create_table.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/migration/src/m20220101_000001_create_table.rs b/server/migration/src/m20220101_000001_create_table.rs index f3edeaa6..9198a187 100644 --- a/server/migration/src/m20220101_000001_create_table.rs +++ b/server/migration/src/m20220101_000001_create_table.rs @@ -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)