Skip to content

Commit

Permalink
Reorder of some column of tables
Browse files Browse the repository at this point in the history
In schools and users table some columns are reordered.
  • Loading branch information
changeweb committed Apr 9, 2019
1 parent 2302797 commit 54ac02b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ public function up()
{
Schema::create('schools', function (Blueprint $table) {
$table->increments('id');
$table->timestamps();
$table->string('name');
$table->string('established')->default('');
$table->text('about');
$table->string('medium');//bn,en
$table->integer('code')->unique();
$table->string('theme');
$table->timestamps();
});
}

Expand Down
6 changes: 3 additions & 3 deletions database/migrations/2014_10_12_100000_create_users_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ public function up()
$table->string('name');
$table->string('email')->unique();
$table->string('password');
$table->rememberToken();
$table->string('role');
$table->tinyInteger('active');
$table->integer('school_id');
$table->integer('code');//given by us
$table->integer('student_code')->unique();// given by us
$table->integer('code');//school code Auto generated
$table->integer('student_code')->unique();//Auto generated
$table->string('gender')->default('');
$table->string('blood_group')->default('');
$table->string('nationality')->default('');
Expand All @@ -33,6 +32,7 @@ public function up()
$table->string('pic_path')->default('');
$table->tinyInteger('verified');
$table->integer('section_id')->unsigned();
$table->rememberToken();
$table->timestamps();
});
}
Expand Down

0 comments on commit 54ac02b

Please sign in to comment.