fuel/fuel/core/classes/migrate.php
protected static function write_install($name, $type, $file)
	{
		// add the migration just run
		\DB::insert(static::$table)->set(array(
			'name' => $name,
			'type' => $type,
			'migration' => $file,
		))->execute(static::$connection);

		// add the file to the list of run migrations
		static::$migrations[$type][$name][] = $file;

		// make sure the migrations are in the correct order
		sort(static::$migrations[$type][$name]);

		// and save the update to the environment config file
		\Config::set('migrations.version.'.$type.'.'.$name, static::$migrations[$type][$name]);
		\Config::save(\Fuel::$env.DS.'migrations', 'migrations');
	}
protected static function write_install($name, $type, $file)
	{
		// add the migration just run
		\DB::insert(static::$table)->set(array(
			'name' => $name,
			'type' => $type,
			'migration' => $file,
		))->execute(static::$connection);

		// add the file to the list of run migrations
		static::$migrations[$type][$name][] = $file;

		// make sure the migrations are in the correct order
		sort(static::$migrations[$type][$name]);

		// and save the update to the environment config file
		\Config::set('migrations.version.'.$type.'.'.$name, static::$migrations[$type][$name]);
		\Config::save(\Fuel::$env.DS.'migrations', 'migrations');
	}
protected static function write_install ( $ name , $ type , $ file ) { // add the migration just run \ DB :: insert ( static :: $ table ) -> set ( array ( 'name' => $ name , 'type' => $ type , 'migration' => $ file , ) ) -> execute ( static :: $ connection ) ; // add the file to the list of run migrations static :: $ migrations [ $ type ] [ $ name ] [ ] = $ file ; // make sure the migrations are in the correct order sort ( static :: $ migrations [ $ type ] [ $ name ] ) ; // and save the update to the environment config file \ Config :: set ( 'migrations.version.' . $ type . '.' . $ name , static :: $ migrations [ $ type ] [ $ name ] ) ; \ Config :: save ( \ Fuel :: $ env . DS . 'migrations' , 'migrations' ) ; }
add an installed migration to the database

@param   string  name of the package, module or app
@param   string  type of migration (package, module or app)
@param   string  name of the migration file just run

@return	void
add an installed migration to the database