28 lines
528 B
PHP
28 lines
528 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
use Hyperf\Database\Schema\Schema;
|
||
|
|
use Hyperf\Database\Schema\Blueprint;
|
||
|
|
use Hyperf\Database\Migrations\Migration;
|
||
|
|
|
||
|
|
return new class extends Migration
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Run the migrations.
|
||
|
|
*/
|
||
|
|
public function up(): void
|
||
|
|
{
|
||
|
|
Schema::create('skus', function (Blueprint $table) {
|
||
|
|
$table->bigIncrements('id');
|
||
|
|
$table->datetimes();
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Reverse the migrations.
|
||
|
|
*/
|
||
|
|
public function down(): void
|
||
|
|
{
|
||
|
|
Schema::dropIfExists('skus');
|
||
|
|
}
|
||
|
|
};
|
||
|
|
|