public function alterTable($arg) { if ($arg instanceof DeclareSchema) { $table = $arg->getTable(); } else { $table = $arg; } return new AlterTableQuery($arg); }