mirror of https://github.com/pixelfed/pixelfed
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			37 lines
		
	
	
		
			909 B
		
	
	
	
		
			PHP
		
	
			
		
		
	
	
			37 lines
		
	
	
		
			909 B
		
	
	
	
		
			PHP
		
	
<?php
 | 
						|
 | 
						|
use Illuminate\Database\Migrations\Migration;
 | 
						|
use Illuminate\Database\Schema\Blueprint;
 | 
						|
use Illuminate\Support\Facades\Schema;
 | 
						|
 | 
						|
class CreateAvatarsTable extends Migration
 | 
						|
{
 | 
						|
    /**
 | 
						|
     * Run the migrations.
 | 
						|
     *
 | 
						|
     * @return void
 | 
						|
     */
 | 
						|
    public function up()
 | 
						|
    {
 | 
						|
        Schema::create('avatars', function (Blueprint $table) {
 | 
						|
            $table->bigIncrements('id');
 | 
						|
            $table->bigInteger('profile_id')->unsigned()->unique()->index();
 | 
						|
            $table->string('media_path')->nullable();
 | 
						|
            $table->string('thumb_path')->nullable();
 | 
						|
            $table->unsignedInteger('change_count')->default(0);
 | 
						|
            $table->timestamp('last_processed_at')->nullable();
 | 
						|
            $table->timestamps();
 | 
						|
        });
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Reverse the migrations.
 | 
						|
     *
 | 
						|
     * @return void
 | 
						|
     */
 | 
						|
    public function down()
 | 
						|
    {
 | 
						|
        Schema::dropIfExists('avatars');
 | 
						|
    }
 | 
						|
}
 |