Skip to content

Commit

Permalink
adds model migration
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitkataria authored and fristonio committed Feb 7, 2018
1 parent bbf32b4 commit d878711
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddModelToUser extends Migration
{
/**
* Run the migrations.
*
* @return void
*/

public function up()
{
Schema::table('users', function (Blueprint $table) {
$table->string('role')->default(null);
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('logs', function (Blueprint $table) {
$table->dropColumn('role');
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<link href="//cdn.muicss.com/mui-0.9.36/css/mui.min.css" rel="stylesheet" type="text/css" />
<script src="//cdn.muicss.com/mui-0.9.36/js/mui.min.js"></script>
<link rel="stylesheet" href="{{asset('css/dashboard.css')}}">
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/2.0.1/css/toastr.css" rel="stylesheet"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/2.0.1/js/toastr.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.1.4/Chart.bundle.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion central-server/resources/views/loginregister.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<title>Login</title>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/2.0.1/css/toastr.css" rel="stylesheet"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/2.0.1/js/toastr.js"></script>
</head>
Expand Down

0 comments on commit d878711

Please sign in to comment.