1
0
Fork 0

Merge pull request #430 from pixelfed/frontend-ui-refactor

Frontend ui refactor
This commit is contained in:
daniel 2018-09-01 22:43:48 -06:00 committed by GitHub
commit 7a337a02ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 82 additions and 0 deletions

10
app/Instance.php Normal file
View File

@ -0,0 +1,10 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Instance extends Model
{
//
}

View File

@ -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()
{
//
}
}

View File

@ -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');
}
}