Run "up" a migration instance.

@param  string  $file
@return void
178810
protected function runUp($file)
    {
        // First we will resolve a "real" instance of the migration class from this
        // migration file name. Once we have the instances we can run the actual
        // command such as "up" or "down", or we can just simulate the action.
        $migration = $this->resolve($name = $this->getMigrationName($file));

        $this->note("<comment>Migrating:</comment> {$name}");

        // Run migrayion up
        $migration->up();

        // Registrar na lista de executados
        $this->setExecuted($name);

        $this->note("<info>Migrated:</info>  {$name}");
    }
597584
public function up(): void
    {
        Schema::create(config('queue.connections.database.table'), function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('queue');
            $table->longText('payload');
            $table->tinyInteger('attempts')->unsigned();
            $table->integer('reserved_at')->unsigned()->nullable();
            $table->integer('available_at')->unsigned();
            $table->integer('created_at')->unsigned();

            // Indexes
            $table->index('queue');
        });
    }
70304
public function up()
    {
        if (Schema::hasTable('email_template') && !Schema::hasColumn('email_template', 'attachment')) {
            Schema::table('email_template', function (Blueprint $t){
                $t->text('attachment')->nullable()->after('subject');
            });
        }
    }
473068
public function up()
    {
        $file = dirname($this->getIdentifier()->filepath).'/'.$this->getVersion().'.sql';
        if (file_exists($file)) {
            dbexecfile($file);
        }
    }
885322
protected function loadFile($file)
    {
        $requiredFiles = $this->getRequiredFiles($file);
        $this->values[$file] = true;

        foreach ($requiredFiles as $fileToRequire) {
            $overrideConfig = require $fileToRequire['path'];
            $this->config->addConfig([$file => $overrideConfig], $fileToRequire['environment']);
        }
    }
27516
public function up() {
		$db = Database::get();
		$db->query("
			ALTER TABLE `file`
			ADD `path` varchar(128) COLLATE 'utf8_unicode_ci' NOT NULL AFTER `name`;
		", []);

		$data = $db->get_all('SELECT * FROM file WHERE path = "" AND md5sum != ""', []);
		foreach ($data as $row) {
			$path = $this->get_path($row);
			$db->query('UPDATE file SET path=? WHERE id=?', [ $path, $row['id'] ]);
		}
	}
51894
public function up()
    {
        Schema::create('laralum_files_settings', function (Blueprint $table) {
            $table->increments('id');
            $table->string('public_url');
            $table->boolean('public_routes');
            $table->timestamps();
        });

        Settings::create([
            'public_url'     => 'files',
            'public_routes'  => true,
        ]);
    }
407571
public function up()
    {
        $config = require __DIR__ . '/../config/membership.php';

        Schema::table($config['users']['table'], function (Blueprint $table) use ($config) {
            $table->unsignedInteger('primary_group_id')->nullable();

            $table->foreign('primary_group_id')->references('id')->on('groups')->onDelete('set null');
        });
    }
754312
public function up()
    {
        Schema::create($this->prefixCmsTable('file_uploads'), function (Blueprint $table) {
            $table->increments('id');
            $table->string('reference', 191)->nullable()->index();
            $table->string('name', 191)->nullable();
            $table->text('path')->nullable();
            $table->string('uploader', 191)->nullable();
            $table->integer('file_size')->unsigned()->nullable();
            $table->nullableTimestamps();
        });
    }
641317
public function up()
    {
        $this->down();

        try {
            $this->buildMapper(
               'ScContent.Migration.MapperBase.Content'
            )
            ->up();

            $this->buildMapper(
                'ScContent.Migration.MapperBase.Search'
            )
            ->up();

            $this->buildMapper(
                'ScContent.Migration.MapperBase.Garbage'
            )
            ->up();

            $this->buildMapper(
                'ScContent.Migration.MapperBase.Layout'
            )
            ->up();

            $this->buildMapper(
                'ScContent.Migration.MapperBase.Widgets'
            )
            ->up();

            $this->buildMapper(
                'ScContent.Migration.MapperBase.Users'
            )
            ->up();

            $this->buildMapper(
                'ScContent.Migration.MapperBase.Roles'
            )
            ->up();

            $this->buildMapper(
                'ScContent.Migration.MapperBase.RolesLinker'
            )
            ->up();

        } catch (Exception $e) {
            $this->down();
            throw new MigrationException(
               'Migration Failed: ' . $e->getMessage(),
               $e->getCode(),
               $e
            );
        }
    }
1110034
public function load(string $file)
    {
        $this->data = Yaml::parse(file_get_contents($file));
        $this->filename = basename($file);
    }
1221002
public function up()
	{
		if(! Schema::hasTable('001_001_lang'))
		{
			Schema::create('001_001_lang', function (Blueprint $table) {
				$table->engine = 'InnoDB';
				
				$table->string('id_001', 2);
				$table->string('name_001');
				$table->string('image_001')->nullable();
				$table->smallInteger('sorting_001')->unsigned();
				$table->boolean('base_001');
				$table->boolean('active_001');

				$table->primary('id_001', 'pk01_001_001_lang');
			});
		}
	}
580879
public function up()
    {
        if (! Schema::hasTable($this->table)) {
            Schema::create($this->table, function (Blueprint $table) {
                $table->increments('id');
                $table->string('original_filename')->nullable();
                $table->string('original_filepath')->nullable();
                $table->string('original_filedir')->nullable();
                $table->string('original_extension', 4)->nullable();
                $table->string('original_mime', 10)->nullable();
                $table->integer('original_filesize')->unsigned()->nullable();
                $table->smallInteger('original_width')->unsigned()->nullable();
                $table->smallInteger('original_height')->unsigned()->nullable();
                $table->string('path')->nullable();
                $table->string('dir')->nullable();
                $table->string('filename')->nullable();
                $table->string('basename')->nullable();
                $table->text('exif')->nullable();

                foreach (Config::get('imageupload.dimensions') as $key => $dimension) {
                    $table->string($key.'_path')->nullable();
                    $table->string($key.'_dir')->nullable();
                    $table->string($key.'_filename')->nullable();
                    $table->string($key.'_filepath')->nullable();
                    $table->string($key.'_filedir')->nullable();
                    $table->integer($key.'_filesize')->unsigned()->nullable();
                    $table->smallInteger($key.'_width')->unsigned()->nullable();
                    $table->smallInteger($key.'_height')->unsigned()->nullable();
                    $table->boolean($key.'_is_squared')->unsigned()->nullable();
                }

                $table->timestamps();
            });
        }
    }
806383
public function loadDatabase(string $file): void
	{
		Helpers::loadFromFile($this->context->getConnection(), $file);
	}
1190140
def _run_up(self, path, migration_file, batch, pretend=False):
        
        migration = self._resolve(path, migration_file)

        if pretend:
            return self._pretend_to_run(migration, "up")

        if migration.transactional:
            with migration.db.transaction():
                migration.up()
        else:
            migration.up()

        self._repository.log(migration_file, batch)

        self._note(
            decode("[<info>OK</>] <info>Migrated</info> ")
            + "<fg=cyan>%s</>" % migration_file
        )
94238
public function load($file)
    {
        $loader = new PhpConfig();
        $widgets = $loader->read($file);
        $this->add($widgets);
    }
1252544
public function run($path)
    {

        $this->createMigrationRepository();
        $repository = $this->migrator->getRepository();
        $migrations = $this->migrator->getMigrationFiles($path);
        $ran        = $repository->getRan();
        if (!empty($migrations)) {
            $files = array_keys($migrations);
            foreach ($files as $name) {
                if (!in_array($name, $ran)) {
                    continue;
                }
                $migration            = new stdClass();
                $migration->migration = $name;
                $repository->delete($migration);
            }
        }


        $this->migrator->run($path);
    }