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
pad-upe
Commits
ac0580f8
Commit
ac0580f8
authored
Jun 29, 2022
by
alissonalbuquerque
Browse files
add refratoração de migration de planejamento
parent
193316f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
database/migrations/2022_03_20_233345_create_ref_planejamento_ches_table.php
deleted
100644 → 0
View file @
193316f7
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
CreateRefPlanejamentoChesTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'ref_planejamento_ches'
,
function
(
Blueprint
$table
)
{
$table
->
id
();
$table
->
timestamps
();
$table
->
string
(
"descricao_atividade"
,
50
);
$table
->
float
(
"ch_semanal"
,
5
,
2
);
$table
->
float
(
"ch_maxima"
,
5
,
2
);
$table
->
foreignId
(
'PAD_id'
)
->
constrained
(
'pads'
)
->
onUpdate
(
'cascade'
)
->
onDelete
(
'cascade'
);
$table
->
softDeletes
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'ref_planejamento_ches'
);
}
}
database/migrations/2022_03_22_113324_create_planejamentos_table.php
View file @
ac0580f8
...
@@ -22,6 +22,11 @@ class CreatePlanejamentosTable extends Migration
...
@@ -22,6 +22,11 @@ class CreatePlanejamentosTable extends Migration
$table
->
integer
(
'ch_maxima'
)
->
nullable
();
$table
->
integer
(
'ch_maxima'
)
->
nullable
();
$table
->
timestamps
();
$table
->
timestamps
();
$table
->
softDeletes
();
$table
->
softDeletes
();
$table
->
foreignId
(
'pad_id'
)
->
constrained
(
'pad'
)
->
onUpdate
(
'cascade'
)
->
onDelete
(
'cascade'
);
});
});
}
}
...
...
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