create() public method

Create a new migration for the given extension.
public create ( string $name, Extension $extension = null, string $table = null, boolean $create = false ) : string
$name string
$extension Flarum\Extension\Extension
$table string
$create boolean
return string
Esempio n. 1
0
 /**
  * Write the migration file to disk.
  *
  * @param string $name
  * @param string $extension
  * @param string $table
  * @param bool $create
  * @return string
  */
 protected function writeMigration($name, $extension, $table, $create)
 {
     $path = $this->creator->create($name, $extension, $table, $create);
     $file = pathinfo($path, PATHINFO_FILENAME);
     $this->info("Created migration: {$file}");
 }