mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-30 04:15:58 +08:00
Renamed attribute to tags & continued interface
Also fixed page create route broken in last commit
This commit is contained in:
@ -54,7 +54,7 @@ $factory->define(BookStack\Role::class, function ($faker) {
|
||||
];
|
||||
});
|
||||
|
||||
$factory->define(BookStack\Attribute::class, function ($faker) {
|
||||
$factory->define(BookStack\Tag::class, function ($faker) {
|
||||
return [
|
||||
'name' => $faker->city,
|
||||
'value' => $faker->sentence(3)
|
||||
|
@ -3,7 +3,7 @@
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateAttributesTable extends Migration
|
||||
class CreateTagsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
@ -12,7 +12,7 @@ class CreateAttributesTable extends Migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('attributes', function (Blueprint $table) {
|
||||
Schema::create('tags', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->integer('entity_id');
|
||||
$table->string('entity_type', 100);
|
||||
@ -35,6 +35,6 @@ class CreateAttributesTable extends Migration
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('attributes');
|
||||
Schema::drop('tags');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user