Commit 005872f983fde2c344c1a878316adf7b39eea4fa
1 parent
0428bf27
Exists in
2.9
Adiciona o nome do esquema a tabela
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/Models/EmployeeWithdrawal.php
@@ -48,7 +48,7 @@ class EmployeeWithdrawal extends LegacyModel | @@ -48,7 +48,7 @@ class EmployeeWithdrawal extends LegacyModel | ||
48 | parent::boot(); | 48 | parent::boot(); |
49 | 49 | ||
50 | static::creating(function ($employeeWithdrawal) { | 50 | static::creating(function ($employeeWithdrawal) { |
51 | - $employeeWithdrawal->sequencial = DB::table('servidor_afastamento')->where('ref_cod_servidor', $employeeWithdrawal->ref_cod_servidor)->where('ref_ref_cod_instituicao', $employeeWithdrawal->ref_ref_cod_instituicao)->max('sequencial') + 1; | 51 | + $employeeWithdrawal->sequencial = DB::table('pmieducar.servidor_afastamento')->where('ref_cod_servidor', $employeeWithdrawal->ref_cod_servidor)->where('ref_ref_cod_instituicao', $employeeWithdrawal->ref_ref_cod_instituicao)->max('sequencial') + 1; |
52 | }); | 52 | }); |
53 | } | 53 | } |
54 | } | 54 | } |