improve migration class

This commit is contained in:
Jan-Niclas Loosen
2025-02-12 15:55:28 +01:00
parent 29703314a3
commit c4a7025978
5 changed files with 212 additions and 180 deletions

21
enums/Aggregation.php Normal file
View File

@@ -0,0 +1,21 @@
<?php
namespace DatabaseHelper\enums;
enum Aggregation
{
case COUNT;
case SUM;
case AVG;
case MIN;
case MAX;
public function toString(): string {
return match ($this) {
self::COUNT => 'COUNT',
self::SUM => 'SUM',
self::AVG => 'AVG',
self::MIN => 'MIN',
self::MAX => 'MAX',
};
}
}