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
d6eb9236
Commit
d6eb9236
authored
Mar 23, 2022
by
alissonalbuquerque
Browse files
add tabela para peenchimento de ensino na categoria de aulas'
parent
e051cdeb
Changes
1
Hide whitespace changes
Inline
Side-by-side
database/migrations/2022_03_22_225548_create_ensino_aulas_table.php
0 → 100644
View file @
d6eb9236
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
CreateEnsinoAulasTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'ensino_aulas'
,
function
(
Blueprint
$table
)
{
$table
->
id
();
$table
->
string
(
'cod_atividade'
)
->
notNull
();
$table
->
string
(
'componente_curricular'
)
->
notNull
();
$table
->
foreignId
(
'curso_id'
)
->
notNull
();
$table
->
tinyInteger
(
'nivel'
)
->
notNull
();
$table
->
tinyInteger
(
'modalidade'
)
->
notNull
();
$table
->
integer
(
'ch_semanal'
)
->
notNull
();
$table
->
integer
(
'ch_total'
)
->
notNull
();
$table
->
foreignId
(
'pad_id'
);
$table
->
timestamps
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'ensino_aulas'
);
}
}
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