mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-15 05:00:49 +08:00
tag add more customized options + NexusDB::rememter()
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddMarginPaddingToTagsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('tags', function (Blueprint $table) {
|
||||
$table->string('padding')->default(0);
|
||||
$table->string('margin')->default('0 4px 0 0');
|
||||
$table->string('border_radius')->default(0);
|
||||
$table->string('font_size')->default('12px');
|
||||
$table->string('font_color')->default('#ffffff');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('tags', function (Blueprint $table) {
|
||||
$table->dropColumn(['padding', 'margin', 'font_size', 'font_color', 'border_radius']);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user