MemberRanks

This commit is contained in:
Gogs
2021-06-15 00:36:47 +02:00
parent 1f448b1ec4
commit dfe1530d27
15 changed files with 336 additions and 14 deletions
@@ -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();
}
}
+2
View File
@@ -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