Change column type to timestamp

This commit is contained in:
Nikolay Kochulin 2019-12-08 13:18:29 +00:00
parent 805af26473
commit 4ee2dafded

View File

@ -175,7 +175,8 @@ namespace JetKarmaBot.Models
entity.Property(e => e.CooldownDate)
.HasColumnName("cooldowndate")
.HasColumnType("datetime");
.HasColumnType("timestamp")
.HasDefaultValueSql("CURRENT_TIMESTAMP");
});
}
}