2015-07-13 22:52:56 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
2021-06-26 17:23:15 +02:00
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
2015-07-13 22:52:56 +02:00
|
|
|
|
2023-02-06 17:58:29 +01:00
|
|
|
return new class extends Migration
|
2015-07-13 22:52:56 +02:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
|
|
|
Schema::create('images', function (Blueprint $table) {
|
|
|
|
$table->increments('id');
|
|
|
|
$table->string('name');
|
|
|
|
$table->string('url');
|
2016-02-16 22:25:11 +01:00
|
|
|
$table->nullableTimestamps();
|
2015-07-13 22:52:56 +02:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
Schema::drop('images');
|
|
|
|
}
|
2023-02-06 17:58:29 +01:00
|
|
|
};
|