Commit 3425d92eb5e117ed1d0462351def772a8eb0485b
1 parent
5aaef129
Exists in
master
and in
1 other branch
Ajustado migração altera_funcao_copia_notas_transf.php;
portabilis/ieducar#162
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
ieducar/misc/database/migrations/20161230162741_altera_funcao_copia_notas_transf.php
@@ -6,7 +6,8 @@ class AlteraFuncaoCopiaNotasTransf extends AbstractMigration | @@ -6,7 +6,8 @@ class AlteraFuncaoCopiaNotasTransf extends AbstractMigration | ||
6 | { | 6 | { |
7 | public function up() | 7 | public function up() |
8 | { | 8 | { |
9 | - $this->execute("CREATE OR REPLACE FUNCTION modules.copia_notas_transf(old_matricula_id integer, new_matricula_id integer) | 9 | + $this->execute("DROP FUNCTION modules.copia_notas_transf; |
10 | + CREATE OR REPLACE FUNCTION modules.copia_notas_transf(old_matricula_id integer, new_matricula_id integer) | ||
10 | RETURNS void AS | 11 | RETURNS void AS |
11 | $$ | 12 | $$ |
12 | DECLARE | 13 | DECLARE |