forked from portabilis/i-educar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adicionado campo seção no cadastro de área de conhecimento;
- Loading branch information
1 parent
4ac9479
commit 1b7fc01
Showing
6 changed files
with
58 additions
and
13 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
ieducar/misc/database/deltas/portabilis/75_adiciona_coluna_secao_area_conhecimento.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
-- // | ||
|
||
-- | ||
-- Adiciona coluna seção a área de conhecimento | ||
-- | ||
-- @author Lucas Schmoeller da Silva <lucas@portabilis.com.br> | ||
-- @license @@license@@ | ||
-- @version $Id$ | ||
|
||
ALTER TABLE modules.area_conhecimento ADD COLUMN secao CHARACTER VARYING(50); | ||
|
||
-- //@UNDO | ||
|
||
ALTER TABLE modules.area_conhecimento DROP COLUMN secao; | ||
|
||
-- // |
16 changes: 16 additions & 0 deletions
16
ieducar/misc/database/migrations/20151201161741_coluna_secao_area_conhecimento.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
use Phinx\Migration\AbstractMigration; | ||
|
||
class ColunaSecaoAreaConhecimento extends AbstractMigration | ||
{ | ||
public function up() | ||
{ | ||
$count = $this->execute("ALTER TABLE modules.area_conhecimento ADD COLUMN secao CHARACTER VARYING(50);"); | ||
} | ||
|
||
public function down() | ||
{ | ||
$count = $this->execute("ALTER TABLE modules.area_conhecimento DROP COLUMN secao;"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters