Refactor the database, in preparation to moving to postgresql
This commit is contained in:
41
database/migrations/2022_10_22_002411_setup.php
Normal file
41
database/migrations/2022_10_22_002411_setup.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class Setup extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('setups', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
|
||||
$table->integer('zmodem');
|
||||
$table->integer('emsi_protocols');
|
||||
$table->integer('binkp');
|
||||
$table->integer('protocols');
|
||||
$table->integer('permissions');
|
||||
$table->integer('options');
|
||||
|
||||
$table->bigInteger('system_id');
|
||||
$table->foreign('system_id')->references('id')->on('systems');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('setups');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user