Update source into github
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration {
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('hosting', function (Blueprint $table) {
|
||||
$table->id()->autoIncrement();
|
||||
$table->string('name', 255)->nullable();
|
||||
$table->string('slug')->nullable();
|
||||
$table->integer('price')->nullable();
|
||||
$table->integer('price_sale')->nullable();
|
||||
$table->integer('ram')->default(0)->nullable();
|
||||
$table->integer('disk')->default(125)->nullable();
|
||||
$table->integer('cpu')->default(1)->nullable();
|
||||
$table->integer('gpu')->default(0)->nullable();
|
||||
$table->integer('ip')->default(0)->nullable();
|
||||
$table->integer('bandwidth')->default(1000)->nullable();
|
||||
$table->integer('module_host_id')->nullable()->index();
|
||||
$table->text('description')->nullable();
|
||||
$table->string('template', 255)->nullable();
|
||||
$table->tinyInteger('type_id')->default(0)->index();
|
||||
$table->integer('group_id')->default(0)->index();
|
||||
$table->tinyInteger('status')->default(1);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('hosting', function (Blueprint $table) {
|
||||
$table->dropForeign('group_id');
|
||||
$table->drop();
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user