pg support of duplicate key update

This commit is contained in:
xiaomlove
2026-04-25 03:22:38 +07:00
parent dc77ab7b40
commit 7d18a7f76a
14 changed files with 62 additions and 29 deletions
-1
View File
@@ -372,7 +372,6 @@ class User extends Authenticatable implements FilamentUser, HasName
{
return $query->where('donor', 'yes')->where(function (Builder $query) {
return $query->whereNull('donoruntil')
->orWhere('donoruntil', '0000-00-00 00:00:00')
->orWhere('donoruntil', '>=', now());
});
}