forked from mirror/pixelfed
Merge pull request #430 from pixelfed/frontend-ui-refactor
Frontend ui refactor
This commit is contained in:
commit
7a337a02ab
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Instance extends Model
|
||||
{
|
||||
//
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class UpdateProfileTableAddApUrls extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('profiles', function (Blueprint $table) {
|
||||
$table->string('inbox_url')->nullable()->after('sharedInbox');
|
||||
$table->string('outbox_url')->nullable()->after('inbox_url');
|
||||
$table->string('follower_url')->nullable()->after('outbox_url');
|
||||
$table->string('following_url')->nullable()->after('follower_url');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateInstancesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('instances', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->string('domain')->unique()->index();
|
||||
$table->string('url')->nullable();
|
||||
$table->string('name')->nullable();
|
||||
$table->string('admin_url')->nullable();
|
||||
$table->string('limit_reason')->nullable();
|
||||
$table->boolean('unlisted')->default(false);
|
||||
$table->boolean('auto_cw')->default(false);
|
||||
$table->boolean('banned')->default(false);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('instances');
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue