Funzione per mysql/mariadb e SQLITE
This commit is contained in:
parent
1f1412f169
commit
2b283518f6
@ -399,7 +399,7 @@ public function ContoA()
|
||||
// Ritorna gli anni presenti nei movimenti
|
||||
public static function getYearsFromMovimenti()
|
||||
{
|
||||
if (env('DB_CONNECTION')=='mysql') {
|
||||
if (!env('DB_CONNECTION')=='sqlite') {
|
||||
return self::selectRaw('DISTINCT YEAR(mov_data) as anno')
|
||||
->orderBy('anno', 'desc')
|
||||
->get();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user