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
da08d982
"resources/views/projeto/vscode:/vscode.git/clone" did not exist on "3bc67fa99eb68bef2c89b18b6b83326b60a38ecf"
Commit
da08d982
authored
Dec 12, 2022
by
unknown
Browse files
Criação de tabela para relação entre area tematica e avaliadores
parent
c20139b1
Changes
1
Show whitespace changes
Inline
Side-by-side
database/migrations/2022_11_21_164737_create_area_tematica_avaliadors_table.php
0 → 100644
View file @
da08d982
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
CreateAreaTematicaAvaliadorsTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'area_tematica_avaliadors'
,
function
(
Blueprint
$table
)
{
$table
->
bigIncrements
(
'id'
);
$table
->
integer
(
'area_tematica_id'
);
$table
->
foreign
(
'area_tematica_id'
)
->
references
(
'id'
)
->
on
(
'area_tematicas'
);
$table
->
integer
(
'avaliador_id'
);
$table
->
foreign
(
'avaliador_id'
)
->
references
(
'id'
)
->
on
(
'avaliadors'
);
$table
->
timestamps
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'area_tematica_avaliadors'
);
}
}
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