mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 14:53:45 +02:00
Implement base service file modification through panel
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class AddChecksumsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('checksums', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->integer('service')->unsigned();
|
||||
$table->string('filename');
|
||||
$table->char('checksum', 40);
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('service')->references('id')->on('services');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('checksums');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user