Commit d40dd642bf74870c206ca342e14fd612b2ea4335
Exists in
master
Merge branch 'master' into 'master'
Corrige cadastro de novas raças Referente a issue #50 See merge request !42
Showing
1 changed file
with
11 additions
and
0 deletions
Show diff stats
ieducar/misc/database/migrations/20170528171149_atualiza_sequencial_raca.php
0 → 100644
@@ -0,0 +1,11 @@ | @@ -0,0 +1,11 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +use Phinx\Migration\AbstractMigration; | ||
4 | + | ||
5 | +class AtualizaSequencialRaca extends AbstractMigration | ||
6 | +{ | ||
7 | + public function change() | ||
8 | + { | ||
9 | + $this->execute("SELECT setval('raca_cod_raca_seq', (SELECT MAX(cod_raca) FROM cadastro.raca)::integer);"); | ||
10 | + } | ||
11 | +} |