mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
Add table prefix
This commit is contained in:
parent
37bd297094
commit
72dbe95168
|
@ -75,7 +75,7 @@ class DenormalizedEolAndAddColumnForExplicitDateToAssets extends Migration
|
||||||
private function eolUpdateExpression(): Expression
|
private function eolUpdateExpression(): Expression
|
||||||
{
|
{
|
||||||
if (DB::getDriverName() === 'sqlite') {
|
if (DB::getDriverName() === 'sqlite') {
|
||||||
return DB::raw("DATE(purchase_date, '+' || (SELECT eol FROM models WHERE models.id = assets.model_id) || ' months')");
|
return DB::raw("DATE(purchase_date, '+' || (SELECT eol FROM " . DB::getTablePrefix() ."models WHERE models.id = assets.model_id) || ' months')");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Default to MySQL's method
|
// Default to MySQL's method
|
||||||
|
|
Loading…
Reference in a new issue