mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-22 17:12:30 +01:00
1489f7a694
PufferPanel v0.9 (Laravel) is now Pterodactyl 1.0
34 lines
688 B
PHP
34 lines
688 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class AddDownloadsTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('downloads', function (Blueprint $table) {
|
|
$table->increments('id')->unsigned();
|
|
$table->char('token', 36)->unique();
|
|
$table->mediumInteger('server');
|
|
$table->text('path');
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::drop('downloads');
|
|
}
|
|
}
|