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
665a1d59
Commit
665a1d59
authored
Mar 11, 2022
by
alissonalbuquerque
Browse files
desativar classes de migration
parent
7fca24fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
database/migrations/2022_02_02_014728_create_curso_in_users_table.php
View file @
665a1d59
...
...
@@ -13,9 +13,9 @@ class CreateCursoInUsersTable extends Migration
*/
public
function
up
()
{
Schema
::
table
(
'users'
,
function
(
Blueprint
$table
)
{
$table
->
foreignId
(
'curso_id'
)
->
nullable
();
});
//
Schema::table('users', function (Blueprint $table) {
//
$table->foreignId('curso_id')->nullable();
//
});
}
/**
...
...
@@ -25,8 +25,8 @@ class CreateCursoInUsersTable extends Migration
*/
public
function
down
()
{
if
(
Schema
::
hasColumn
(
'users'
,
'curso_id'
))
{
Schema
::
dropColumns
(
'users'
,
[
'curso_id'
]);
}
//
if(Schema::hasColumn('users', 'curso_id')) {
//
Schema::dropColumns('users', ['curso_id']);
//
}
}
}
database/migrations/2022_03_11_131811_create_unidade_in_users_table.php
0 → 100644
View file @
665a1d59
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
CreateUnidadeInUsersTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'users'
,
function
(
Blueprint
$table
)
{
// $table->foreignId('unidade_id')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
// if(Schema::hasColumn('users', 'unidade_id')) {
// Schema::dropColumns('users', ['unidade_id']);
// }
}
}
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