MemberRanks
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php namespace GermanAirlinesVa\Schooling\Updates;
|
||||
|
||||
use Schema;
|
||||
use October\Rain\Database\Updates\Migration;
|
||||
|
||||
class BuilderTableCreateMemberRanks extends Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
Schema::connection('germanairlinesva_schooling')->create('member_ranks', function ($table) {
|
||||
$table->engine = 'InnoDB';
|
||||
$table->bigIncrements('id')->unsigned();
|
||||
$table->string('name');
|
||||
$table->text('description');
|
||||
$table->integer('points')->unsigned();
|
||||
$table->integer('price')->unsigned();
|
||||
$table->string('badge');
|
||||
$table->string('region');
|
||||
});
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::connection('germanairlinesva_schooling')->disableForeignKeyConstraints();
|
||||
Schema::connection('germanairlinesva_schooling')->dropIfExists('member_ranks');
|
||||
Schema::connection('germanairlinesva_schooling')->enableForeignKeyConstraints();
|
||||
}
|
||||
}
|
||||
@@ -5,3 +5,5 @@
|
||||
1.0.2:
|
||||
- 'Created table typeratings'
|
||||
- builder_table_create_typeratings.php
|
||||
- 'Created table member_ranks'
|
||||
- builder_table_create_member_ranks.php
|
||||
|
||||
Reference in New Issue
Block a user