jonnybarnes.uk/database/migrations/2015_10_08_155111_create_media_table.php

37 lines
921 B
PHP
Raw Normal View History

2016-05-19 15:01:28 +01:00
<?php
use Illuminate\Database\Migrations\Migration;
2022-07-09 10:08:26 +01:00
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
2016-05-19 15:01:28 +01:00
class CreateMediaTable extends Migration
{
/**
* Run the migrations.
*/
public function up()
{
Schema::create('media', function (Blueprint $table) {
$table->increments('id');
$table->morphs('model');
$table->string('collection_name');
$table->string('name');
$table->string('file_name');
$table->string('disk');
$table->unsignedInteger('size');
$table->text('manipulations');
$table->text('custom_properties');
$table->unsignedInteger('order_column')->nullable();
$table->timestamps();
});
}
2022-07-09 10:08:26 +01:00
2016-05-19 15:01:28 +01:00
/**
* Reverse the migrations.
*/
public function down()
{
Schema::drop('media');
}
}