Funzione per mysql/mariadb e SQLITE
This commit is contained in:
parent
13553db970
commit
f59f05f88b
@ -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