diff --git a/app/Schema/Postgres.php b/app/Schema/Postgres.php index 9c72141af..e7f89f82a 100644 --- a/app/Schema/Postgres.php +++ b/app/Schema/Postgres.php @@ -12,7 +12,7 @@ function version_98(PDO $pdo) { $pdo->exec('ALTER TABLE "comments" ADD COLUMN date_modification BIGINT'); $pdo->exec('UPDATE "comments" - SET date_modificaiton = date_creation + SET date_modification = date_creation WHERE date_modification IS NULL'); } diff --git a/app/Template/comment/show.php b/app/Template/comment/show.php index 8a9c855bf..f8d9607e6 100644 --- a/app/Template/comment/show.php +++ b/app/Template/comment/show.php @@ -7,8 +7,8 @@ text->e($comment['name'] ?: $comment['username']) ?> - : dt->datetime($comment['date_creation']) ?> - : dt->datetime($comment['date_modification']) ?> + dt->datetime($comment['date_creation']) ?> + dt->datetime($comment['date_modification']) ?>