Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
submeta
Commits
5673688a
Commit
5673688a
authored
Nov 12, 2021
by
Guilherme Silva
Browse files
Mudança de atributo para novo arquivo de migração
parent
19529938
Changes
2
Hide whitespace changes
Inline
Side-by-side
database/migrations/2021_08_27_145845_create_substituicaos_table.php
View file @
5673688a
...
@@ -19,7 +19,6 @@ class CreateSubstituicaosTable extends Migration
...
@@ -19,7 +19,6 @@ class CreateSubstituicaosTable extends Migration
$table
->
enum
(
'tipo'
,
[
'Completa'
,
'TrocarPlano'
,
'ManterPlano'
]);
$table
->
enum
(
'tipo'
,
[
'Completa'
,
'TrocarPlano'
,
'ManterPlano'
]);
$table
->
text
(
'justificativa'
)
->
nullable
();
$table
->
text
(
'justificativa'
)
->
nullable
();
$table
->
string
(
'causa'
)
->
nullable
();
$table
->
string
(
'causa'
)
->
nullable
();
$table
->
text
(
'observacao'
)
->
nullable
();
$table
->
unsignedBigInteger
(
'trabalho_id'
);
$table
->
unsignedBigInteger
(
'trabalho_id'
);
$table
->
unsignedBigInteger
(
'participanteSubstituido_id'
);
$table
->
unsignedBigInteger
(
'participanteSubstituido_id'
);
...
...
database/migrations/2021_11_12_093019_alter_table_substituicaos.php
0 → 100644
View file @
5673688a
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
AlterTableSubstituicaos
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
table
(
'substituicaos'
,
function
(
Blueprint
$table
)
{
$table
->
text
(
'observacao'
)
->
nullable
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
table
(
'substituicaos'
,
function
(
Blueprint
$table
)
{
$table
->
dropColumn
(
'observacao'
);
});
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment