Files
nexusphp/database/migrations/2021_06_08_113437_create_stylesheets_table.php

39 lines
907 B
PHP
Raw Normal View History

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateStylesheetsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
2021-06-09 15:11:02 +08:00
if (Schema::hasTable('stylesheets')) {
return;
}
Schema::create('stylesheets', function (Blueprint $table) {
2023-01-16 19:43:56 +08:00
$table->increments('id');
$table->string('uri')->default('');
$table->string('name', 64)->default('');
$table->text('addicode')->nullable();
$table->string('designer', 50)->default('');
$table->string('comment')->default('');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('stylesheets');
}
}