For pushing migrations up.

@return void
191146
public function up()
    {
        $this->create('migrations', function ($table) {
            // Place table rows here
            $table->increments('id');
            $table->string('migration');
            $table->integer('migrated');
            $table->timestamps();
        });
    }
1220151
public function up()
    {
        Schema::create('files', function (Blueprint $table) {
            $table->increments('id');
            $table->string('file_id')->unique();
            $table->string('name');
            $table->string('extension')->nullable();
            $table->string('path')->nullable();
            $table->string('mime_type');
            $table->integer('byte_size');
            $table->json('data');
            $table->string('disk');
            $table->dateTime('saved_at');
        });
    }
888822
public function up()
    {
    	if (Schema::hasTable('users')) {

    		Schema::table('users', function (Blueprint $table) {
	            
	            if (!Schema::hasColumn('users', 'is_admin')) {

	            	$table->tinyInteger('is_admin')->default(0)->comment('1: admin, 0: not is admin');
	            }

	            if (!Schema::hasColumn('users', 'name')) {
	            	$table->string('name');
	            }
	            
	            if (!Schema::hasColumn('users', 'email')) {
	            	$table->string('email')->unique();
	            }

	            if (!Schema::hasColumn('users', 'password')) {
	            	$table->string('password');
	            }

	            if (!Schema::hasColumn('users', 'remember_token')) {
	            	$table->rememberToken();
	            }


	        });
    	}

    	else {

    		Schema::create('users', function (Blueprint $table) {
	            $table->increments('id');
	            $table->string('name');
	            $table->string('email')->unique();
	            $table->string('password');
	            $table->tinyInteger('is_admin')->default(0)->comment('1: admin, 0: not is admin');
	            $table->rememberToken();
	            $table->timestamps();
	        });
    	}
        
    }
539890
public function up()
    {
        Schema::table('comments', function ($table) {
            $table->integer('version')->unsigned()->default(1);
        });

        foreach (CommentProvider::all() as $comment) {
            $comment->update(array('version' => 1));
        }
    }
208978
public function up()
    {
        Schema::table('fieldables', function (Blueprint $table) {
            $table->integer('position')->unsigned()->nullable()->default('1')->change();
        });
    }
1200239
public function up()
    {
        if (! Schema::hasTable('promotions')) {
            Schema::create('promotions', function($table) {
                $table->increments('id');
                $table->string('name', 255);
                $table->string('short_description', 255);
                $table->text('long_description')->nullable();
                $table->date('start_date');
                $table->date('end_date');
                $table->boolean('active')->default(true);
                $table->text('options')->nullable();
                 // created_at | updated_at DATETIME
                $table->timestamps();
            });
        }
    }
759267
public function up()
    {
        $this->schema->create('password_resets', function (Blueprint $table) {
            $table->string('email')->index();
            $table->string('token')->index();
            $table->timestamp('created_at')->nullable();
        });
    }
358566
public function up()
    {
        Schema::create('menu', function (Blueprint $table) {
            $table->increments('id');
            $table->string('label');
            $table->string('title')->nullable();
            $table->string('slug');
            $table->string('robot')->nullable();
            $table->string('style')->nullable();
            $table->string('target')->nullable();
            $table->boolean('auth')->default(false);
            $table->string('lang');
            $table->integer('parent')->default(0);
            $table->integer('sort')->default(0);
            $table->string('type');
            $table->timestamps();
        });
    }
662807
public function up()
    {
        Schema::create('api_keys', function (Blueprint $table) {
            $table->increments('id');
            $table->nullableMorphs('apikeyable');
            $table->string('key', 50);
            $table->string('last_ip_address', 50)->nullable();
            $table->dateTime('last_used_at')->nullable();
            $table->nullableTimestamps();
            $table->softDeletes();

            $table->index('key');
        });
    }
706509
public function up()
	{
		if(! Schema::hasTable('001_006_profile'))
		{
			Schema::create('001_006_profile', function (Blueprint $table) {
				$table->engine = 'InnoDB';
				
				$table->increments('id_006')->unsigned();
				$table->string('name_006');
			});
		}
	}
611017
public function up()
    {
        Schema::table('page_versions', function (Blueprint $table) {
            $table->renameColumn('edited_time', 'created_at');
            $table->renameColumn('edited_by', 'created_by');
        });

        Schema::table('asset_versions', function (Blueprint $table) {
            $table->renameColumn('edited_at', 'created_at');
            $table->renameColumn('edited_by', 'created_by');
        });

        Schema::table('assets', function (Blueprint $table) {
            $table->renameColumn('uploaded_time', 'created_at');
            $table->renameColumn('uploaded_by', 'created_by');
        });

        Schema::table('pages', function (Blueprint $table) {
            $table->renameColumn('created_time', 'created_at');
        });
    }
116752
public function up()
    {
        Schema::table('users', function(Blueprint $table) {
            $table->renameColumn('name', 'username');
            $table->boolean('confirmed')->default(0);
            $table->string('confirmation_code')->nullable();
        });
    }
478326
public function up()
    {
        //
        Schema::create('modules', function (Blueprint $table) 
        {
            $table->increments('id')->comment('ID');
            $table->string('name')->nullable()->comment(hst_lang('hstcms::public.name'));
            $table->text('description')->comment();
            $table->string('slug', 50)->default('')->comment();
            $table->string('version', 50)->comment();
            $table->string('enabled', 10)->comment();
            $table->integer('times')->nullable()->comment(hst_lang('hstcms::public.times'));
        });
    }
465721
public function up()
    {
        Schema::table('forum_categories', function (Blueprint $table)
        {
            $table->renameColumn('parent_category', 'category_id');
            $table->renameColumn('subtitle', 'description');
        });

        Schema::table('forum_categories', function (Blueprint $table)
        {
            $table->integer('category_id')->default(0)->change();
            $table->string('description')->nullable()->change();
            $table->integer('weight')->default(0)->change();

            $table->boolean('enable_threads')->default(0);
            $table->boolean('private')->default(0);

            $table->timestamps();
        });
    }
825663
public function up()
    {
        Schema::create(
            'option_categories',
            function (Blueprint $table) {
                $table->string('key');
                $table->timestamps();
                $table->primary('key');
            }
        );

        Schema::create(
            'options',
            function (Blueprint $table) {
                $table->increments('id');
                $table->string('key');
                $table->string('category_key');
                $table->text('value');
                $table->timestamps();
                $table->foreign('category_key')->references('key')->on('option_categories')->onDelete('CASCADE');
                $table->index(['category_key', 'key']);
            }
        );

        // Seed options
        $this->seedOptions();
    }
682410
public function up()
    {
        Schema::create('objects', function (Blueprint $table) {
            $table->engine = 'InnoDB';
            $table->increments('id');
            $table->integer('image_id')->unsigned()->nullable();
            $table->json('status');
            $table->json('title');
            $table->json('slug');
            $table->json('summary');
            $table->json('body');
            $table->timestamps();
        });
    }
1338253
public function up()
	{
		Schema::create($this->tablename, function(Blueprint $table)
		{
			$table->increments('id');
			$table->string($this->keyColumn)->index();
			$table->text($this->valueColumn);
		});
	}