Implement base service file modification through panel
This commit is contained in:
parent
b8a6a15b08
commit
cfd5e0e854
19 changed files with 855 additions and 1 deletions
|
@ -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');
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue